connectwise-rest 0.23.3 → 1.0.0
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/.eslintrc +19 -52
- package/.gitattributes +1 -0
- package/.github/workflows/codeql-analysis.yml +70 -0
- package/.github/workflows/node.js.yml +42 -0
- package/.mocharc.json +5 -0
- package/.prettierrc +7 -0
- package/.travis.yml +4 -2
- package/README.md +243 -230
- package/api-extractor.json +364 -0
- package/dist/Automate/AVTemplatePoliciesAPI.d.ts +27 -0
- package/dist/Automate/AVTemplatePoliciesAPI.d.ts.map +1 -0
- package/dist/Automate/AVTemplatePoliciesAPI.js +87 -0
- package/dist/Automate/AVTemplatePoliciesAPI.js.map +1 -0
- package/dist/Automate/ClientsAPI.d.ts +34 -0
- package/dist/Automate/ClientsAPI.d.ts.map +1 -0
- package/dist/Automate/ClientsAPI.js +114 -0
- package/dist/Automate/ClientsAPI.js.map +1 -0
- package/dist/Automate/CommandsAPI.d.ts +15 -0
- package/dist/Automate/CommandsAPI.d.ts.map +1 -0
- package/dist/Automate/CommandsAPI.js +31 -0
- package/dist/Automate/CommandsAPI.js.map +1 -0
- package/dist/Automate/ComputersAPI.d.ts +94 -0
- package/dist/Automate/ComputersAPI.d.ts.map +1 -0
- package/dist/Automate/ComputersAPI.js +353 -0
- package/dist/Automate/ComputersAPI.js.map +1 -0
- package/dist/Automate/ContactsAPI.d.ts +18 -0
- package/dist/Automate/ContactsAPI.d.ts.map +1 -0
- package/dist/Automate/ContactsAPI.js +45 -0
- package/dist/Automate/ContactsAPI.js.map +1 -0
- package/dist/Automate/DataViewsAPI.d.ts +16 -0
- package/dist/Automate/DataViewsAPI.d.ts.map +1 -0
- package/dist/Automate/DataViewsAPI.js +31 -0
- package/dist/Automate/DataViewsAPI.js.map +1 -0
- package/dist/Automate/DrivesAPI.d.ts +19 -0
- package/dist/Automate/DrivesAPI.d.ts.map +1 -0
- package/dist/Automate/DrivesAPI.js +52 -0
- package/dist/Automate/DrivesAPI.js.map +1 -0
- package/dist/Automate/EventLogsAPI.d.ts +14 -0
- package/dist/Automate/EventLogsAPI.d.ts.map +1 -0
- package/dist/Automate/EventLogsAPI.js +24 -0
- package/dist/Automate/EventLogsAPI.js.map +1 -0
- package/dist/Automate/LocationsAPI.d.ts +42 -0
- package/dist/Automate/LocationsAPI.d.ts.map +1 -0
- package/dist/Automate/LocationsAPI.js +133 -0
- package/dist/Automate/LocationsAPI.js.map +1 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts +14 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts.map +1 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.js +24 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.js.map +1 -0
- package/dist/Automate/MonitorsAPI.d.ts +23 -0
- package/dist/Automate/MonitorsAPI.d.ts.map +1 -0
- package/dist/Automate/MonitorsAPI.js +80 -0
- package/dist/Automate/MonitorsAPI.js.map +1 -0
- package/dist/Automate/NetworkDevicesAPI.d.ts +17 -0
- package/dist/Automate/NetworkDevicesAPI.d.ts.map +1 -0
- package/dist/Automate/NetworkDevicesAPI.js +38 -0
- package/dist/Automate/NetworkDevicesAPI.js.map +1 -0
- package/dist/Automate/PatchingAPI.d.ts +27 -0
- package/dist/Automate/PatchingAPI.d.ts.map +1 -0
- package/dist/Automate/PatchingAPI.js +94 -0
- package/dist/Automate/PatchingAPI.js.map +1 -0
- package/dist/Automate/RemoteAgentAPI.d.ts +18 -0
- package/dist/Automate/RemoteAgentAPI.d.ts.map +1 -0
- package/dist/Automate/RemoteAgentAPI.js +45 -0
- package/dist/Automate/RemoteAgentAPI.js.map +1 -0
- package/dist/Automate/ScriptingAPI.d.ts +32 -0
- package/dist/Automate/ScriptingAPI.d.ts.map +1 -0
- package/dist/Automate/ScriptingAPI.js +104 -0
- package/dist/Automate/ScriptingAPI.js.map +1 -0
- package/dist/Automate/SearchesAPI.d.ts +17 -0
- package/dist/Automate/SearchesAPI.d.ts.map +1 -0
- package/dist/Automate/SearchesAPI.js +38 -0
- package/dist/Automate/SearchesAPI.js.map +1 -0
- package/dist/Automate/SystemAPI.d.ts +72 -0
- package/dist/Automate/SystemAPI.d.ts.map +1 -0
- package/dist/Automate/SystemAPI.js +268 -0
- package/dist/Automate/SystemAPI.js.map +1 -0
- package/dist/Automate/TicketsAPI.d.ts +10 -0
- package/dist/Automate/TicketsAPI.d.ts.map +1 -0
- package/dist/Automate/TicketsAPI.js +24 -0
- package/dist/Automate/TicketsAPI.js.map +1 -0
- package/dist/Automate/UserProfilesAPI.d.ts +14 -0
- package/dist/Automate/UserProfilesAPI.d.ts.map +1 -0
- package/dist/Automate/UserProfilesAPI.js +23 -0
- package/dist/Automate/UserProfilesAPI.js.map +1 -0
- package/dist/Automate.d.ts +48 -0
- package/dist/Automate.d.ts.map +1 -0
- package/dist/Automate.js +167 -0
- package/dist/Automate.js.map +1 -0
- package/dist/AutomateAPI.d.ts +96 -0
- package/dist/AutomateAPI.d.ts.map +1 -0
- package/dist/AutomateAPI.js +168 -0
- package/dist/AutomateAPI.js.map +1 -0
- package/dist/AutomateTypes.d.ts +10437 -0
- package/dist/AutomateTypes.d.ts.map +1 -0
- package/dist/AutomateTypes.js +3 -0
- package/dist/AutomateTypes.js.map +1 -0
- package/dist/BaseAPI.d.ts +13 -0
- package/dist/BaseAPI.d.ts.map +1 -0
- package/dist/BaseAPI.js +53 -0
- package/dist/BaseAPI.js.map +1 -0
- package/dist/Manage/CompanyAPI.d.ts +573 -0
- package/dist/Manage/CompanyAPI.d.ts.map +1 -0
- package/dist/Manage/CompanyAPI.js +3294 -0
- package/dist/Manage/CompanyAPI.js.map +1 -0
- package/dist/Manage/ConfigurationsAPI.d.ts +24 -0
- package/dist/Manage/ConfigurationsAPI.d.ts.map +1 -0
- package/dist/Manage/ConfigurationsAPI.js +73 -0
- package/dist/Manage/ConfigurationsAPI.js.map +1 -0
- package/dist/Manage/ExpenseAPI.d.ts +68 -0
- package/dist/Manage/ExpenseAPI.d.ts.map +1 -0
- package/dist/Manage/ExpenseAPI.js +306 -0
- package/dist/Manage/ExpenseAPI.js.map +1 -0
- package/dist/Manage/FinanceAPI.d.ts +460 -0
- package/dist/Manage/FinanceAPI.d.ts.map +1 -0
- package/dist/Manage/FinanceAPI.js +2587 -0
- package/dist/Manage/FinanceAPI.js.map +1 -0
- package/dist/Manage/MarketingAPI.d.ts +120 -0
- package/dist/Manage/MarketingAPI.d.ts.map +1 -0
- package/dist/Manage/MarketingAPI.js +629 -0
- package/dist/Manage/MarketingAPI.js.map +1 -0
- package/dist/Manage/ProcurementAPI.d.ts +373 -0
- package/dist/Manage/ProcurementAPI.d.ts.map +1 -0
- package/dist/Manage/ProcurementAPI.js +2098 -0
- package/dist/Manage/ProcurementAPI.js.map +1 -0
- package/dist/Manage/ProjectAPI.d.ts +179 -0
- package/dist/Manage/ProjectAPI.d.ts.map +1 -0
- package/dist/Manage/ProjectAPI.js +940 -0
- package/dist/Manage/ProjectAPI.js.map +1 -0
- package/dist/Manage/SalesAPI.d.ts +254 -0
- package/dist/Manage/SalesAPI.d.ts.map +1 -0
- package/dist/Manage/SalesAPI.js +1392 -0
- package/dist/Manage/SalesAPI.js.map +1 -0
- package/dist/Manage/ScheduleAPI.d.ts +111 -0
- package/dist/Manage/ScheduleAPI.d.ts.map +1 -0
- package/dist/Manage/ScheduleAPI.js +575 -0
- package/dist/Manage/ScheduleAPI.js.map +1 -0
- package/dist/Manage/ServiceAPI.d.ts +419 -0
- package/dist/Manage/ServiceAPI.d.ts.map +1 -0
- package/dist/Manage/ServiceAPI.js +2334 -0
- package/dist/Manage/ServiceAPI.js.map +1 -0
- package/dist/Manage/SystemAPI.d.ts +809 -0
- package/dist/Manage/SystemAPI.d.ts.map +1 -0
- package/dist/Manage/SystemAPI.js +4531 -0
- package/dist/Manage/SystemAPI.js.map +1 -0
- package/dist/Manage/TimeAPI.d.ts +157 -0
- package/dist/Manage/TimeAPI.d.ts.map +1 -0
- package/dist/Manage/TimeAPI.js +835 -0
- package/dist/Manage/TimeAPI.js.map +1 -0
- package/dist/Manage.d.ts +34 -0
- package/dist/Manage.d.ts.map +1 -0
- package/dist/Manage.js +127 -0
- package/dist/Manage.js.map +1 -0
- package/dist/ManageAPI.d.ts +99 -0
- package/dist/ManageAPI.d.ts.map +1 -0
- package/dist/ManageAPI.js +112 -0
- package/dist/ManageAPI.js.map +1 -0
- package/dist/ManageTypes.d.ts +91320 -0
- package/dist/ManageTypes.d.ts.map +1 -0
- package/dist/ManageTypes.js +7 -0
- package/dist/ManageTypes.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +46 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +21 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/Callback.d.ts +67 -0
- package/dist/utils/Callback.d.ts.map +1 -0
- package/dist/utils/Callback.js +109 -0
- package/dist/utils/Callback.js.map +1 -0
- package/dist/utils/Series.d.ts +36 -0
- package/dist/utils/Series.d.ts.map +1 -0
- package/dist/utils/Series.js +64 -0
- package/dist/utils/Series.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +11 -0
- package/dist/utils/index.js.map +1 -0
- package/generator/automate-generator.js +75 -0
- package/generator/automate-json.js +61 -0
- package/generator/automate-types.js +15 -0
- package/generator/generator.d.ts +67 -0
- package/generator/generator.js +255 -0
- package/generator/manage-generator.js +71 -0
- package/generator/manage-types.js +14 -0
- package/package.json +48 -21
- package/src/Automate/AVTemplatePoliciesAPI.ts +114 -0
- package/src/Automate/ClientsAPI.ts +161 -0
- package/src/Automate/CommandsAPI.ts +33 -0
- package/src/Automate/ComputersAPI.ts +550 -0
- package/src/Automate/ContactsAPI.ts +56 -0
- package/src/Automate/DataViewsAPI.ts +36 -0
- package/src/Automate/DrivesAPI.ts +74 -0
- package/src/Automate/EventLogsAPI.ts +25 -0
- package/src/Automate/LocationsAPI.ts +206 -0
- package/src/Automate/MaintenanceWindowDefinitionsAPI.ts +28 -0
- package/src/Automate/MonitorsAPI.ts +94 -0
- package/src/Automate/NetworkDevicesAPI.ts +44 -0
- package/src/Automate/PatchingAPI.ts +109 -0
- package/src/Automate/RemoteAgentAPI.ts +58 -0
- package/src/Automate/ScriptingAPI.ts +137 -0
- package/src/Automate/SearchesAPI.ts +42 -0
- package/src/Automate/SystemAPI.ts +386 -0
- package/src/Automate/TicketsAPI.ts +24 -0
- package/src/Automate/UserProfilesAPI.ts +25 -0
- package/src/Automate.ts +216 -0
- package/src/AutomateAPI.ts +144 -0
- package/src/AutomateTypes.ts +10492 -0
- package/src/BaseAPI.ts +83 -0
- package/src/Manage/CompanyAPI.ts +4851 -0
- package/src/Manage/ConfigurationsAPI.ts +107 -0
- package/src/Manage/ExpenseAPI.ts +395 -0
- package/src/Manage/FinanceAPI.ts +3851 -0
- package/src/Manage/MarketingAPI.ts +935 -0
- package/src/Manage/ProcurementAPI.ts +3044 -0
- package/src/Manage/ProjectAPI.ts +1400 -0
- package/src/Manage/SalesAPI.ts +1922 -0
- package/src/Manage/ScheduleAPI.ts +751 -0
- package/src/Manage/ServiceAPI.ts +3401 -0
- package/src/Manage/SystemAPI.ts +6269 -0
- package/src/Manage/TimeAPI.ts +1121 -0
- package/src/Manage.ts +152 -0
- package/src/ManageAPI.ts +133 -0
- package/src/ManageTypes.ts +91318 -0
- package/src/index.ts +18 -0
- package/src/types.ts +66 -0
- package/src/utils/Callback.ts +145 -0
- package/src/utils/Series.ts +83 -0
- package/src/utils/index.ts +7 -0
- package/swagger-errors.md +30 -0
- package/test/.env.example +12 -4
- package/test/test-utils.ts +27 -0
- package/test/test.ts +320 -0
- package/tsconfig.json +29 -0
- package/doc.md +0 -5984
- package/docs/jsdoc.json +0 -15
- package/index.js +0 -10
- package/src/CompanyAPI/Companies.js +0 -149
- package/src/CompanyAPI/CompanyCompanyTypeAssociations.js +0 -111
- package/src/CompanyAPI/CompanySites.js +0 -70
- package/src/CompanyAPI/CompanyTeams.js +0 -108
- package/src/CompanyAPI/CompanyTypeInfos.js +0 -58
- package/src/CompanyAPI/CompanyTypes.js +0 -52
- package/src/CompanyAPI/Configurations.js +0 -152
- package/src/CompanyAPI/ContactContactTypeAssociations.js +0 -55
- package/src/CompanyAPI/ContactRelationships.js +0 -36
- package/src/CompanyAPI/Contacts.js +0 -199
- package/src/CompanyAPI/index.js +0 -53
- package/src/ConnectWise.js +0 -339
- package/src/ConnectWiseRest.js +0 -512
- package/src/FinanceAPI/Additions.js +0 -127
- package/src/FinanceAPI/Adjustments.js +0 -109
- package/src/FinanceAPI/AgreementSites.js +0 -108
- package/src/FinanceAPI/Agreements.js +0 -220
- package/src/FinanceAPI/BoardDefaults.js +0 -109
- package/src/FinanceAPI/WorkRoles.js +0 -113
- package/src/FinanceAPI/WorkTypeExclusions.js +0 -78
- package/src/FinanceAPI/WorkTypes.js +0 -124
- package/src/FinanceAPI/index.js +0 -50
- package/src/ProjectAPI/Projects.js +0 -142
- package/src/ProjectAPI/index.js +0 -28
- package/src/SalesAPI/Activities.js +0 -149
- package/src/SalesAPI/index.js +0 -14
- package/src/ScheduleAPI/ScheduleEntries.js +0 -109
- package/src/ScheduleAPI/ScheduleTypes.js +0 -101
- package/src/ScheduleAPI/index.js +0 -30
- package/src/ServiceDeskAPI/BoardItems.js +0 -134
- package/src/ServiceDeskAPI/BoardSubTypes.js +0 -112
- package/src/ServiceDeskAPI/BoardTeams.js +0 -108
- package/src/ServiceDeskAPI/BoardTypes.js +0 -139
- package/src/ServiceDeskAPI/Boards.js +0 -100
- package/src/ServiceDeskAPI/Priorities.js +0 -47
- package/src/ServiceDeskAPI/ServiceNotes.js +0 -172
- package/src/ServiceDeskAPI/Statuses.js +0 -116
- package/src/ServiceDeskAPI/Tickets.js +0 -588
- package/src/ServiceDeskAPI/index.js +0 -53
- package/src/SystemAPI/Members.js +0 -139
- package/src/SystemAPI/Reports.js +0 -116
- package/src/SystemAPI/index.js +0 -32
- package/src/TimeAPI/TimeEntries.js +0 -121
- package/src/TimeAPI/index.js +0 -27
- package/src/utils/Callback.js +0 -125
- package/src/utils/Series.js +0 -64
- package/src/utils/index.js +0 -21
- package/test/test.js +0 -114
|
@@ -0,0 +1,1922 @@
|
|
|
1
|
+
/* This file was auto-generated, do not manually edit. */
|
|
2
|
+
import Manage from '../Manage'
|
|
3
|
+
import { components } from '../ManageTypes'
|
|
4
|
+
import { CommonParameters, CWMOptions } from '../ManageAPI'
|
|
5
|
+
import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
|
|
6
|
+
type schemas = components['schemas']
|
|
7
|
+
|
|
8
|
+
export type Activity = schemas['Activity']
|
|
9
|
+
export type ActivityStatus = schemas['ActivityStatus']
|
|
10
|
+
export type ActivityStatusInfo = schemas['ActivityStatusInfo']
|
|
11
|
+
export type ActivityType = schemas['ActivityType']
|
|
12
|
+
export type Agreement = schemas['Agreement']
|
|
13
|
+
export type Commission = schemas['Commission']
|
|
14
|
+
export type Count = schemas['Count']
|
|
15
|
+
export type Forecast = schemas['Forecast']
|
|
16
|
+
export type ForecastItem = schemas['ForecastItem']
|
|
17
|
+
export type Opportunity = schemas['Opportunity']
|
|
18
|
+
export type OpportunityContact = schemas['OpportunityContact']
|
|
19
|
+
export type OpportunityNote = schemas['OpportunityNote']
|
|
20
|
+
export type OpportunityRating = schemas['OpportunityRating']
|
|
21
|
+
export type OpportunityRatingInfo = schemas['OpportunityRatingInfo']
|
|
22
|
+
export type OpportunityStage = schemas['OpportunityStage']
|
|
23
|
+
export type OpportunityStageInfo = schemas['OpportunityStageInfo']
|
|
24
|
+
export type OpportunityStatus = schemas['OpportunityStatus']
|
|
25
|
+
export type OpportunityStatusInfo = schemas['OpportunityStatusInfo']
|
|
26
|
+
export type OpportunityToAgreementConversion = schemas['OpportunityToAgreementConversion']
|
|
27
|
+
export type OpportunityToProjectConversion = schemas['OpportunityToProjectConversion']
|
|
28
|
+
export type OpportunityToSalesOrderConversion = schemas['OpportunityToSalesOrderConversion']
|
|
29
|
+
export type OpportunityToServiceTicketConversion = schemas['OpportunityToServiceTicketConversion']
|
|
30
|
+
export type OpportunityType = schemas['OpportunityType']
|
|
31
|
+
export type OpportunityTypeInfo = schemas['OpportunityTypeInfo']
|
|
32
|
+
export type Order = schemas['Order']
|
|
33
|
+
export type OrderStatus = schemas['OrderStatus']
|
|
34
|
+
export type OrderStatusEmailTemplate = schemas['OrderStatusEmailTemplate']
|
|
35
|
+
export type OrderStatusInfo = schemas['OrderStatusInfo']
|
|
36
|
+
export type OrderStatusNotification = schemas['OrderStatusNotification']
|
|
37
|
+
export type PatchOperation = schemas['PatchOperation']
|
|
38
|
+
export type Project = schemas['Project']
|
|
39
|
+
export type Role = schemas['Role']
|
|
40
|
+
export type SalesProbability = schemas['SalesProbability']
|
|
41
|
+
export type SalesProbabilityInfo = schemas['SalesProbabilityInfo']
|
|
42
|
+
export type SalesQuota = schemas['SalesQuota']
|
|
43
|
+
export type SalesTeam = schemas['SalesTeam']
|
|
44
|
+
export type SalesTeamMember = schemas['SalesTeamMember']
|
|
45
|
+
export type SuccessResponse = schemas['SuccessResponse']
|
|
46
|
+
export type Team = schemas['Team']
|
|
47
|
+
export type Ticket = schemas['Ticket']
|
|
48
|
+
export type Usage = schemas['Usage']
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export default class SalesAPI extends Manage {
|
|
54
|
+
constructor(props: CWMOptions) {
|
|
55
|
+
super(props)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
getSalesActivities(params: CommonParameters = {}): Promise<Array<Activity>> {
|
|
59
|
+
return this.request({
|
|
60
|
+
path: `/sales/activities`,
|
|
61
|
+
method: 'get',
|
|
62
|
+
params,
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
postSalesActivities(activity: Activity): Promise<Activity> {
|
|
67
|
+
return this.request({
|
|
68
|
+
path: `/sales/activities`,
|
|
69
|
+
method: 'post',
|
|
70
|
+
data: activity,
|
|
71
|
+
})
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
getSalesActivitiesById(id: number, params: CommonParameters = {}): Promise<Activity> {
|
|
75
|
+
return this.request({
|
|
76
|
+
path: `/sales/activities/${id}`,
|
|
77
|
+
method: 'get',
|
|
78
|
+
params,
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
deleteSalesActivitiesById(id: number): Promise<NoContentResponse> {
|
|
83
|
+
return this.request({
|
|
84
|
+
path: `/sales/activities/${id}`,
|
|
85
|
+
method: 'delete',
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
putSalesActivitiesById(id: number, activity: Activity): Promise<Activity> {
|
|
90
|
+
return this.request({
|
|
91
|
+
path: `/sales/activities/${id}`,
|
|
92
|
+
method: 'put',
|
|
93
|
+
data: activity,
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
patchSalesActivitiesById(id: number, patchOperations: Array<PatchOperation>): Promise<Activity> {
|
|
98
|
+
return this.request({
|
|
99
|
+
path: `/sales/activities/${id}`,
|
|
100
|
+
method: 'patch',
|
|
101
|
+
data: patchOperations,
|
|
102
|
+
})
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
getSalesActivitiesCount(params: CommonParameters = {}): Promise<Count> {
|
|
106
|
+
return this.request({
|
|
107
|
+
path: `/sales/activities/count`,
|
|
108
|
+
method: 'get',
|
|
109
|
+
params,
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
getSalesActivitiesStatuses(params: CommonParameters = {}): Promise<Array<ActivityStatus>> {
|
|
114
|
+
return this.request({
|
|
115
|
+
path: `/sales/activities/statuses`,
|
|
116
|
+
method: 'get',
|
|
117
|
+
params,
|
|
118
|
+
})
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
postSalesActivitiesStatuses(activityStatus: ActivityStatus): Promise<ActivityStatus> {
|
|
122
|
+
return this.request({
|
|
123
|
+
path: `/sales/activities/statuses`,
|
|
124
|
+
method: 'post',
|
|
125
|
+
data: activityStatus,
|
|
126
|
+
})
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
getSalesActivitiesStatusesById(
|
|
130
|
+
id: number,
|
|
131
|
+
params: CommonParameters = {},
|
|
132
|
+
): Promise<ActivityStatus> {
|
|
133
|
+
return this.request({
|
|
134
|
+
path: `/sales/activities/statuses/${id}`,
|
|
135
|
+
method: 'get',
|
|
136
|
+
params,
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
deleteSalesActivitiesStatusesById(id: number): Promise<NoContentResponse> {
|
|
141
|
+
return this.request({
|
|
142
|
+
path: `/sales/activities/statuses/${id}`,
|
|
143
|
+
method: 'delete',
|
|
144
|
+
})
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
putSalesActivitiesStatusesById(
|
|
148
|
+
id: number,
|
|
149
|
+
activityStatus: ActivityStatus,
|
|
150
|
+
): Promise<ActivityStatus> {
|
|
151
|
+
return this.request({
|
|
152
|
+
path: `/sales/activities/statuses/${id}`,
|
|
153
|
+
method: 'put',
|
|
154
|
+
data: activityStatus,
|
|
155
|
+
})
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
patchSalesActivitiesStatusesById(
|
|
159
|
+
id: number,
|
|
160
|
+
patchOperations: Array<PatchOperation>,
|
|
161
|
+
): Promise<ActivityStatus> {
|
|
162
|
+
return this.request({
|
|
163
|
+
path: `/sales/activities/statuses/${id}`,
|
|
164
|
+
method: 'patch',
|
|
165
|
+
data: patchOperations,
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
getSalesActivitiesStatusesByIdInfo(
|
|
170
|
+
id: number,
|
|
171
|
+
params: CommonParameters = {},
|
|
172
|
+
): Promise<ActivityStatusInfo> {
|
|
173
|
+
return this.request({
|
|
174
|
+
path: `/sales/activities/statuses/${id}/info`,
|
|
175
|
+
method: 'get',
|
|
176
|
+
params,
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
getSalesActivitiesStatusesCount(params: CommonParameters = {}): Promise<Count> {
|
|
181
|
+
return this.request({
|
|
182
|
+
path: `/sales/activities/statuses/count`,
|
|
183
|
+
method: 'get',
|
|
184
|
+
params,
|
|
185
|
+
})
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
getSalesActivitiesStatusesInfo(
|
|
189
|
+
params: CommonParameters = {},
|
|
190
|
+
): Promise<Array<ActivityStatusInfo>> {
|
|
191
|
+
return this.request({
|
|
192
|
+
path: `/sales/activities/statuses/info`,
|
|
193
|
+
method: 'get',
|
|
194
|
+
params,
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
getSalesActivitiesStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
199
|
+
return this.request({
|
|
200
|
+
path: `/sales/activities/statuses/info/count`,
|
|
201
|
+
method: 'get',
|
|
202
|
+
params,
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
getSalesActivitiesTypes(params: CommonParameters = {}): Promise<Array<ActivityType>> {
|
|
207
|
+
return this.request({
|
|
208
|
+
path: `/sales/activities/types`,
|
|
209
|
+
method: 'get',
|
|
210
|
+
params,
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
postSalesActivitiesTypes(activityType: ActivityType): Promise<ActivityType> {
|
|
215
|
+
return this.request({
|
|
216
|
+
path: `/sales/activities/types`,
|
|
217
|
+
method: 'post',
|
|
218
|
+
data: activityType,
|
|
219
|
+
})
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
getSalesActivitiesTypesById(id: number, params: CommonParameters = {}): Promise<ActivityType> {
|
|
223
|
+
return this.request({
|
|
224
|
+
path: `/sales/activities/types/${id}`,
|
|
225
|
+
method: 'get',
|
|
226
|
+
params,
|
|
227
|
+
})
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
deleteSalesActivitiesTypesById(id: number): Promise<NoContentResponse> {
|
|
231
|
+
return this.request({
|
|
232
|
+
path: `/sales/activities/types/${id}`,
|
|
233
|
+
method: 'delete',
|
|
234
|
+
})
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
putSalesActivitiesTypesById(id: number, activityType: ActivityType): Promise<ActivityType> {
|
|
238
|
+
return this.request({
|
|
239
|
+
path: `/sales/activities/types/${id}`,
|
|
240
|
+
method: 'put',
|
|
241
|
+
data: activityType,
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
patchSalesActivitiesTypesById(
|
|
246
|
+
id: number,
|
|
247
|
+
patchOperations: Array<PatchOperation>,
|
|
248
|
+
): Promise<ActivityType> {
|
|
249
|
+
return this.request({
|
|
250
|
+
path: `/sales/activities/types/${id}`,
|
|
251
|
+
method: 'patch',
|
|
252
|
+
data: patchOperations,
|
|
253
|
+
})
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
getSalesActivitiesTypesByIdUsages(
|
|
257
|
+
id: number,
|
|
258
|
+
params: CommonParameters = {},
|
|
259
|
+
): Promise<Array<Usage>> {
|
|
260
|
+
return this.request({
|
|
261
|
+
path: `/sales/activities/types/${id}/usages`,
|
|
262
|
+
method: 'get',
|
|
263
|
+
params,
|
|
264
|
+
})
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
getSalesActivitiesTypesByIdUsagesList(
|
|
268
|
+
id: number,
|
|
269
|
+
params: CommonParameters = {},
|
|
270
|
+
): Promise<Array<Usage>> {
|
|
271
|
+
return this.request({
|
|
272
|
+
path: `/sales/activities/types/${id}/usages/list`,
|
|
273
|
+
method: 'get',
|
|
274
|
+
params,
|
|
275
|
+
})
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
getSalesActivitiesTypesCount(params: CommonParameters = {}): Promise<Count> {
|
|
279
|
+
return this.request({
|
|
280
|
+
path: `/sales/activities/types/count`,
|
|
281
|
+
method: 'get',
|
|
282
|
+
params,
|
|
283
|
+
})
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
getSalesCommissions(params: CommonParameters = {}): Promise<Array<Commission>> {
|
|
287
|
+
return this.request({
|
|
288
|
+
path: `/sales/commissions`,
|
|
289
|
+
method: 'get',
|
|
290
|
+
params,
|
|
291
|
+
})
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
postSalesCommissions(commission: Commission): Promise<Commission> {
|
|
295
|
+
return this.request({
|
|
296
|
+
path: `/sales/commissions`,
|
|
297
|
+
method: 'post',
|
|
298
|
+
data: commission,
|
|
299
|
+
})
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
getSalesCommissionsById(id: number, params: CommonParameters = {}): Promise<Commission> {
|
|
303
|
+
return this.request({
|
|
304
|
+
path: `/sales/commissions/${id}`,
|
|
305
|
+
method: 'get',
|
|
306
|
+
params,
|
|
307
|
+
})
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
deleteSalesCommissionsById(id: number): Promise<NoContentResponse> {
|
|
311
|
+
return this.request({
|
|
312
|
+
path: `/sales/commissions/${id}`,
|
|
313
|
+
method: 'delete',
|
|
314
|
+
})
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
putSalesCommissionsById(id: number, commission: Commission): Promise<Commission> {
|
|
318
|
+
return this.request({
|
|
319
|
+
path: `/sales/commissions/${id}`,
|
|
320
|
+
method: 'put',
|
|
321
|
+
data: commission,
|
|
322
|
+
})
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
patchSalesCommissionsById(
|
|
326
|
+
id: number,
|
|
327
|
+
patchOperations: Array<PatchOperation>,
|
|
328
|
+
): Promise<Commission> {
|
|
329
|
+
return this.request({
|
|
330
|
+
path: `/sales/commissions/${id}`,
|
|
331
|
+
method: 'patch',
|
|
332
|
+
data: patchOperations,
|
|
333
|
+
})
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
getSalesCommissionsByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
|
|
337
|
+
return this.request({
|
|
338
|
+
path: `/sales/commissions/${id}/usages`,
|
|
339
|
+
method: 'get',
|
|
340
|
+
params,
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
getSalesCommissionsByIdUsagesList(
|
|
345
|
+
id: number,
|
|
346
|
+
params: CommonParameters = {},
|
|
347
|
+
): Promise<Array<Usage>> {
|
|
348
|
+
return this.request({
|
|
349
|
+
path: `/sales/commissions/${id}/usages/list`,
|
|
350
|
+
method: 'get',
|
|
351
|
+
params,
|
|
352
|
+
})
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
getSalesCommissionsCount(params: CommonParameters = {}): Promise<Count> {
|
|
356
|
+
return this.request({
|
|
357
|
+
path: `/sales/commissions/count`,
|
|
358
|
+
method: 'get',
|
|
359
|
+
params,
|
|
360
|
+
})
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
getSalesOpportunities(params: CommonParameters = {}): Promise<Array<Opportunity>> {
|
|
364
|
+
return this.request({
|
|
365
|
+
path: `/sales/opportunities`,
|
|
366
|
+
method: 'get',
|
|
367
|
+
params,
|
|
368
|
+
})
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
postSalesOpportunities(opportunity: Opportunity): Promise<Opportunity> {
|
|
372
|
+
return this.request({
|
|
373
|
+
path: `/sales/opportunities`,
|
|
374
|
+
method: 'post',
|
|
375
|
+
data: opportunity,
|
|
376
|
+
})
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
getSalesOpportunitiesById(id: number, params: CommonParameters = {}): Promise<Opportunity> {
|
|
380
|
+
return this.request({
|
|
381
|
+
path: `/sales/opportunities/${id}`,
|
|
382
|
+
method: 'get',
|
|
383
|
+
params,
|
|
384
|
+
})
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
deleteSalesOpportunitiesById(id: number): Promise<NoContentResponse> {
|
|
388
|
+
return this.request({
|
|
389
|
+
path: `/sales/opportunities/${id}`,
|
|
390
|
+
method: 'delete',
|
|
391
|
+
})
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
putSalesOpportunitiesById(id: number, opportunity: Opportunity): Promise<Opportunity> {
|
|
395
|
+
return this.request({
|
|
396
|
+
path: `/sales/opportunities/${id}`,
|
|
397
|
+
method: 'put',
|
|
398
|
+
data: opportunity,
|
|
399
|
+
})
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
patchSalesOpportunitiesById(
|
|
403
|
+
id: number,
|
|
404
|
+
patchOperations: Array<PatchOperation>,
|
|
405
|
+
): Promise<Opportunity> {
|
|
406
|
+
return this.request({
|
|
407
|
+
path: `/sales/opportunities/${id}`,
|
|
408
|
+
method: 'patch',
|
|
409
|
+
data: patchOperations,
|
|
410
|
+
})
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
postSalesOpportunitiesByIdConvertToAgreement(
|
|
414
|
+
id: number,
|
|
415
|
+
conversion: OpportunityToAgreementConversion,
|
|
416
|
+
): Promise<Agreement> {
|
|
417
|
+
return this.request({
|
|
418
|
+
path: `/sales/opportunities/${id}/convertToAgreement`,
|
|
419
|
+
method: 'post',
|
|
420
|
+
data: conversion,
|
|
421
|
+
})
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
postSalesOpportunitiesByIdConvertToProject(
|
|
425
|
+
id: number,
|
|
426
|
+
conversion: OpportunityToProjectConversion,
|
|
427
|
+
): Promise<Project> {
|
|
428
|
+
return this.request({
|
|
429
|
+
path: `/sales/opportunities/${id}/convertToProject`,
|
|
430
|
+
method: 'post',
|
|
431
|
+
data: conversion,
|
|
432
|
+
})
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
postSalesOpportunitiesByIdConvertToSalesOrder(
|
|
436
|
+
id: number,
|
|
437
|
+
conversion: OpportunityToSalesOrderConversion,
|
|
438
|
+
): Promise<Order> {
|
|
439
|
+
return this.request({
|
|
440
|
+
path: `/sales/opportunities/${id}/convertToSalesOrder`,
|
|
441
|
+
method: 'post',
|
|
442
|
+
data: conversion,
|
|
443
|
+
})
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
postSalesOpportunitiesByIdConvertToServiceTicket(
|
|
447
|
+
id: number,
|
|
448
|
+
conversion: OpportunityToServiceTicketConversion,
|
|
449
|
+
): Promise<Ticket> {
|
|
450
|
+
return this.request({
|
|
451
|
+
path: `/sales/opportunities/${id}/convertToServiceTicket`,
|
|
452
|
+
method: 'post',
|
|
453
|
+
data: conversion,
|
|
454
|
+
})
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
getSalesOpportunitiesByParentIdContacts(
|
|
458
|
+
parentId: number,
|
|
459
|
+
params: CommonParameters = {},
|
|
460
|
+
): Promise<Array<OpportunityContact>> {
|
|
461
|
+
return this.request({
|
|
462
|
+
path: `/sales/opportunities/${parentId}/contacts`,
|
|
463
|
+
method: 'get',
|
|
464
|
+
params,
|
|
465
|
+
})
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
postSalesOpportunitiesByParentIdContacts(
|
|
469
|
+
parentId: number,
|
|
470
|
+
opportunityContact: OpportunityContact,
|
|
471
|
+
): Promise<OpportunityContact> {
|
|
472
|
+
return this.request({
|
|
473
|
+
path: `/sales/opportunities/${parentId}/contacts`,
|
|
474
|
+
method: 'post',
|
|
475
|
+
data: opportunityContact,
|
|
476
|
+
})
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
getSalesOpportunitiesByParentIdContactsById(
|
|
480
|
+
id: number,
|
|
481
|
+
parentId: number,
|
|
482
|
+
params: CommonParameters = {},
|
|
483
|
+
): Promise<OpportunityContact> {
|
|
484
|
+
return this.request({
|
|
485
|
+
path: `/sales/opportunities/${parentId}/contacts/${id}`,
|
|
486
|
+
method: 'get',
|
|
487
|
+
params,
|
|
488
|
+
})
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
deleteSalesOpportunitiesByParentIdContactsById(
|
|
492
|
+
id: number,
|
|
493
|
+
parentId: number,
|
|
494
|
+
): Promise<NoContentResponse> {
|
|
495
|
+
return this.request({
|
|
496
|
+
path: `/sales/opportunities/${parentId}/contacts/${id}`,
|
|
497
|
+
method: 'delete',
|
|
498
|
+
})
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
putSalesOpportunitiesByParentIdContactsById(
|
|
502
|
+
id: number,
|
|
503
|
+
parentId: number,
|
|
504
|
+
opportunityContact: OpportunityContact,
|
|
505
|
+
): Promise<OpportunityContact> {
|
|
506
|
+
return this.request({
|
|
507
|
+
path: `/sales/opportunities/${parentId}/contacts/${id}`,
|
|
508
|
+
method: 'put',
|
|
509
|
+
data: opportunityContact,
|
|
510
|
+
})
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
patchSalesOpportunitiesByParentIdContactsById(
|
|
514
|
+
id: number,
|
|
515
|
+
parentId: number,
|
|
516
|
+
patchOperations: Array<PatchOperation>,
|
|
517
|
+
): Promise<OpportunityContact> {
|
|
518
|
+
return this.request({
|
|
519
|
+
path: `/sales/opportunities/${parentId}/contacts/${id}`,
|
|
520
|
+
method: 'patch',
|
|
521
|
+
data: patchOperations,
|
|
522
|
+
})
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
getSalesOpportunitiesByParentIdContactsCount(
|
|
526
|
+
parentId: number,
|
|
527
|
+
params: CommonParameters = {},
|
|
528
|
+
): Promise<Count> {
|
|
529
|
+
return this.request({
|
|
530
|
+
path: `/sales/opportunities/${parentId}/contacts/count`,
|
|
531
|
+
method: 'get',
|
|
532
|
+
params,
|
|
533
|
+
})
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
getSalesOpportunitiesByParentIdForecast(
|
|
537
|
+
parentId: number,
|
|
538
|
+
params: CommonParameters = {},
|
|
539
|
+
): Promise<Array<Forecast>> {
|
|
540
|
+
return this.request({
|
|
541
|
+
path: `/sales/opportunities/${parentId}/forecast`,
|
|
542
|
+
method: 'get',
|
|
543
|
+
params,
|
|
544
|
+
})
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
postSalesOpportunitiesByParentIdForecast(
|
|
548
|
+
parentId: number,
|
|
549
|
+
forecast: Forecast,
|
|
550
|
+
): Promise<Forecast> {
|
|
551
|
+
return this.request({
|
|
552
|
+
path: `/sales/opportunities/${parentId}/forecast`,
|
|
553
|
+
method: 'post',
|
|
554
|
+
data: forecast,
|
|
555
|
+
})
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
deleteSalesOpportunitiesByParentIdForecast(parentId: number): Promise<NoContentResponse> {
|
|
559
|
+
return this.request({
|
|
560
|
+
path: `/sales/opportunities/${parentId}/forecast/`,
|
|
561
|
+
method: 'delete',
|
|
562
|
+
})
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
putSalesOpportunitiesByParentIdForecast(parentId: number, forecast: Forecast): Promise<Forecast> {
|
|
566
|
+
return this.request({
|
|
567
|
+
path: `/sales/opportunities/${parentId}/forecast/`,
|
|
568
|
+
method: 'put',
|
|
569
|
+
data: forecast,
|
|
570
|
+
})
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
patchSalesOpportunitiesByParentIdForecast(
|
|
574
|
+
parentId: number,
|
|
575
|
+
patchOperations: Array<PatchOperation>,
|
|
576
|
+
): Promise<Forecast> {
|
|
577
|
+
return this.request({
|
|
578
|
+
path: `/sales/opportunities/${parentId}/forecast/`,
|
|
579
|
+
method: 'patch',
|
|
580
|
+
data: patchOperations,
|
|
581
|
+
})
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
getSalesOpportunitiesByParentIdForecastById(
|
|
585
|
+
id: number,
|
|
586
|
+
parentId: number,
|
|
587
|
+
params: CommonParameters = {},
|
|
588
|
+
): Promise<ForecastItem> {
|
|
589
|
+
return this.request({
|
|
590
|
+
path: `/sales/opportunities/${parentId}/forecast/${id}`,
|
|
591
|
+
method: 'get',
|
|
592
|
+
params,
|
|
593
|
+
})
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
postSalesOpportunitiesByParentIdForecastById(
|
|
597
|
+
id: number,
|
|
598
|
+
parentId: number,
|
|
599
|
+
forecast: ForecastItem,
|
|
600
|
+
): Promise<ForecastItem> {
|
|
601
|
+
return this.request({
|
|
602
|
+
path: `/sales/opportunities/${parentId}/forecast/${id}`,
|
|
603
|
+
method: 'post',
|
|
604
|
+
data: forecast,
|
|
605
|
+
})
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
deleteSalesOpportunitiesByParentIdForecastById(
|
|
609
|
+
id: number,
|
|
610
|
+
parentId: number,
|
|
611
|
+
): Promise<NoContentResponse> {
|
|
612
|
+
return this.request({
|
|
613
|
+
path: `/sales/opportunities/${parentId}/forecast/${id}`,
|
|
614
|
+
method: 'delete',
|
|
615
|
+
})
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
putSalesOpportunitiesByParentIdForecastById(
|
|
619
|
+
id: number,
|
|
620
|
+
parentId: number,
|
|
621
|
+
forecast: ForecastItem,
|
|
622
|
+
): Promise<ForecastItem> {
|
|
623
|
+
return this.request({
|
|
624
|
+
path: `/sales/opportunities/${parentId}/forecast/${id}`,
|
|
625
|
+
method: 'put',
|
|
626
|
+
data: forecast,
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
patchSalesOpportunitiesByParentIdForecastById(
|
|
631
|
+
id: number,
|
|
632
|
+
parentId: number,
|
|
633
|
+
patchOperations: Array<PatchOperation>,
|
|
634
|
+
): Promise<ForecastItem> {
|
|
635
|
+
return this.request({
|
|
636
|
+
path: `/sales/opportunities/${parentId}/forecast/${id}`,
|
|
637
|
+
method: 'patch',
|
|
638
|
+
data: patchOperations,
|
|
639
|
+
})
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
postSalesOpportunitiesByParentIdForecastCopyById(
|
|
643
|
+
id: number,
|
|
644
|
+
parentId: number,
|
|
645
|
+
): Promise<SuccessResponse> {
|
|
646
|
+
return this.request({
|
|
647
|
+
path: `/sales/opportunities/${parentId}/forecast/copy/${id}`,
|
|
648
|
+
method: 'post',
|
|
649
|
+
})
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
getSalesOpportunitiesByParentIdForecastCount(
|
|
653
|
+
parentId: number,
|
|
654
|
+
params: CommonParameters = {},
|
|
655
|
+
): Promise<Count> {
|
|
656
|
+
return this.request({
|
|
657
|
+
path: `/sales/opportunities/${parentId}/forecast/count`,
|
|
658
|
+
method: 'get',
|
|
659
|
+
params,
|
|
660
|
+
})
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
getSalesOpportunitiesByParentIdNotes(
|
|
664
|
+
parentId: number,
|
|
665
|
+
params: CommonParameters = {},
|
|
666
|
+
): Promise<Array<OpportunityNote>> {
|
|
667
|
+
return this.request({
|
|
668
|
+
path: `/sales/opportunities/${parentId}/notes`,
|
|
669
|
+
method: 'get',
|
|
670
|
+
params,
|
|
671
|
+
})
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
postSalesOpportunitiesByParentIdNotes(
|
|
675
|
+
parentId: number,
|
|
676
|
+
note: OpportunityNote,
|
|
677
|
+
): Promise<OpportunityNote> {
|
|
678
|
+
return this.request({
|
|
679
|
+
path: `/sales/opportunities/${parentId}/notes`,
|
|
680
|
+
method: 'post',
|
|
681
|
+
data: note,
|
|
682
|
+
})
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
getSalesOpportunitiesByParentIdNotesById(
|
|
686
|
+
id: number,
|
|
687
|
+
parentId: number,
|
|
688
|
+
params: CommonParameters = {},
|
|
689
|
+
): Promise<OpportunityNote> {
|
|
690
|
+
return this.request({
|
|
691
|
+
path: `/sales/opportunities/${parentId}/notes/${id}`,
|
|
692
|
+
method: 'get',
|
|
693
|
+
params,
|
|
694
|
+
})
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
deleteSalesOpportunitiesByParentIdNotesById(
|
|
698
|
+
id: number,
|
|
699
|
+
parentId: number,
|
|
700
|
+
): Promise<NoContentResponse> {
|
|
701
|
+
return this.request({
|
|
702
|
+
path: `/sales/opportunities/${parentId}/notes/${id}`,
|
|
703
|
+
method: 'delete',
|
|
704
|
+
})
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
putSalesOpportunitiesByParentIdNotesById(
|
|
708
|
+
id: number,
|
|
709
|
+
parentId: number,
|
|
710
|
+
note: OpportunityNote,
|
|
711
|
+
): Promise<OpportunityNote> {
|
|
712
|
+
return this.request({
|
|
713
|
+
path: `/sales/opportunities/${parentId}/notes/${id}`,
|
|
714
|
+
method: 'put',
|
|
715
|
+
data: note,
|
|
716
|
+
})
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
patchSalesOpportunitiesByParentIdNotesById(
|
|
720
|
+
id: number,
|
|
721
|
+
parentId: number,
|
|
722
|
+
patchOperations: Array<PatchOperation>,
|
|
723
|
+
): Promise<OpportunityNote> {
|
|
724
|
+
return this.request({
|
|
725
|
+
path: `/sales/opportunities/${parentId}/notes/${id}`,
|
|
726
|
+
method: 'patch',
|
|
727
|
+
data: patchOperations,
|
|
728
|
+
})
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
getSalesOpportunitiesByParentIdNotesCount(
|
|
732
|
+
parentId: number,
|
|
733
|
+
params: CommonParameters = {},
|
|
734
|
+
): Promise<Array<OpportunityNote>> {
|
|
735
|
+
return this.request({
|
|
736
|
+
path: `/sales/opportunities/${parentId}/notes/count`,
|
|
737
|
+
method: 'get',
|
|
738
|
+
params,
|
|
739
|
+
})
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
getSalesOpportunitiesByParentIdTeam(
|
|
743
|
+
parentId: number,
|
|
744
|
+
params: CommonParameters = {},
|
|
745
|
+
): Promise<Array<Team>> {
|
|
746
|
+
return this.request({
|
|
747
|
+
path: `/sales/opportunities/${parentId}/team`,
|
|
748
|
+
method: 'get',
|
|
749
|
+
params,
|
|
750
|
+
})
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
postSalesOpportunitiesByParentIdTeam(parentId: number, team: Team): Promise<Team> {
|
|
754
|
+
return this.request({
|
|
755
|
+
path: `/sales/opportunities/${parentId}/team`,
|
|
756
|
+
method: 'post',
|
|
757
|
+
data: team,
|
|
758
|
+
})
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
getSalesOpportunitiesByParentIdTeamById(
|
|
762
|
+
id: number,
|
|
763
|
+
parentId: number,
|
|
764
|
+
params: CommonParameters = {},
|
|
765
|
+
): Promise<Team> {
|
|
766
|
+
return this.request({
|
|
767
|
+
path: `/sales/opportunities/${parentId}/team/${id}`,
|
|
768
|
+
method: 'get',
|
|
769
|
+
params,
|
|
770
|
+
})
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
deleteSalesOpportunitiesByParentIdTeamById(
|
|
774
|
+
id: number,
|
|
775
|
+
parentId: number,
|
|
776
|
+
): Promise<NoContentResponse> {
|
|
777
|
+
return this.request({
|
|
778
|
+
path: `/sales/opportunities/${parentId}/team/${id}`,
|
|
779
|
+
method: 'delete',
|
|
780
|
+
})
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
putSalesOpportunitiesByParentIdTeamById(id: number, parentId: number, team: Team): Promise<Team> {
|
|
784
|
+
return this.request({
|
|
785
|
+
path: `/sales/opportunities/${parentId}/team/${id}`,
|
|
786
|
+
method: 'put',
|
|
787
|
+
data: team,
|
|
788
|
+
})
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
patchSalesOpportunitiesByParentIdTeamById(
|
|
792
|
+
id: number,
|
|
793
|
+
parentId: number,
|
|
794
|
+
patchOperations: Array<PatchOperation>,
|
|
795
|
+
): Promise<Team> {
|
|
796
|
+
return this.request({
|
|
797
|
+
path: `/sales/opportunities/${parentId}/team/${id}`,
|
|
798
|
+
method: 'patch',
|
|
799
|
+
data: patchOperations,
|
|
800
|
+
})
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
getSalesOpportunitiesByParentIdTeamCount(
|
|
804
|
+
parentId: number,
|
|
805
|
+
params: CommonParameters = {},
|
|
806
|
+
): Promise<Count> {
|
|
807
|
+
return this.request({
|
|
808
|
+
path: `/sales/opportunities/${parentId}/team/count`,
|
|
809
|
+
method: 'get',
|
|
810
|
+
params,
|
|
811
|
+
})
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
getSalesOpportunitiesCount(params: CommonParameters = {}): Promise<Count> {
|
|
815
|
+
return this.request({
|
|
816
|
+
path: `/sales/opportunities/count`,
|
|
817
|
+
method: 'get',
|
|
818
|
+
params,
|
|
819
|
+
})
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
getSalesOpportunitiesDefault(params: CommonParameters = {}): Promise<Opportunity> {
|
|
823
|
+
return this.request({
|
|
824
|
+
path: `/sales/opportunities/default`,
|
|
825
|
+
method: 'get',
|
|
826
|
+
params,
|
|
827
|
+
})
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
getSalesOpportunitiesRatings(params: CommonParameters = {}): Promise<Array<OpportunityRating>> {
|
|
831
|
+
return this.request({
|
|
832
|
+
path: `/sales/opportunities/ratings`,
|
|
833
|
+
method: 'get',
|
|
834
|
+
params,
|
|
835
|
+
})
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
postSalesOpportunitiesRatings(opportunityRating: OpportunityRating): Promise<OpportunityRating> {
|
|
839
|
+
return this.request({
|
|
840
|
+
path: `/sales/opportunities/ratings`,
|
|
841
|
+
method: 'post',
|
|
842
|
+
data: opportunityRating,
|
|
843
|
+
})
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
getSalesOpportunitiesRatingsById(
|
|
847
|
+
id: number,
|
|
848
|
+
params: CommonParameters = {},
|
|
849
|
+
): Promise<OpportunityRating> {
|
|
850
|
+
return this.request({
|
|
851
|
+
path: `/sales/opportunities/ratings/${id}`,
|
|
852
|
+
method: 'get',
|
|
853
|
+
params,
|
|
854
|
+
})
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
deleteSalesOpportunitiesRatingsById(id: number): Promise<NoContentResponse> {
|
|
858
|
+
return this.request({
|
|
859
|
+
path: `/sales/opportunities/ratings/${id}`,
|
|
860
|
+
method: 'delete',
|
|
861
|
+
})
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
putSalesOpportunitiesRatingsById(
|
|
865
|
+
id: number,
|
|
866
|
+
opportunityRating: OpportunityRating,
|
|
867
|
+
): Promise<OpportunityRating> {
|
|
868
|
+
return this.request({
|
|
869
|
+
path: `/sales/opportunities/ratings/${id}`,
|
|
870
|
+
method: 'put',
|
|
871
|
+
data: opportunityRating,
|
|
872
|
+
})
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
patchSalesOpportunitiesRatingsById(
|
|
876
|
+
id: number,
|
|
877
|
+
patchOperations: Array<PatchOperation>,
|
|
878
|
+
): Promise<OpportunityRating> {
|
|
879
|
+
return this.request({
|
|
880
|
+
path: `/sales/opportunities/ratings/${id}`,
|
|
881
|
+
method: 'patch',
|
|
882
|
+
data: patchOperations,
|
|
883
|
+
})
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
getSalesOpportunitiesRatingsByIdInfo(
|
|
887
|
+
id: number,
|
|
888
|
+
params: CommonParameters = {},
|
|
889
|
+
): Promise<OpportunityRatingInfo> {
|
|
890
|
+
return this.request({
|
|
891
|
+
path: `/sales/opportunities/ratings/${id}/info`,
|
|
892
|
+
method: 'get',
|
|
893
|
+
params,
|
|
894
|
+
})
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
getSalesOpportunitiesRatingsCount(params: CommonParameters = {}): Promise<Count> {
|
|
898
|
+
return this.request({
|
|
899
|
+
path: `/sales/opportunities/ratings/count`,
|
|
900
|
+
method: 'get',
|
|
901
|
+
params,
|
|
902
|
+
})
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
getSalesOpportunitiesRatingsInfo(
|
|
906
|
+
params: CommonParameters = {},
|
|
907
|
+
): Promise<Array<OpportunityRatingInfo>> {
|
|
908
|
+
return this.request({
|
|
909
|
+
path: `/sales/opportunities/ratings/info`,
|
|
910
|
+
method: 'get',
|
|
911
|
+
params,
|
|
912
|
+
})
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
getSalesOpportunitiesRatingsInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
916
|
+
return this.request({
|
|
917
|
+
path: `/sales/opportunities/ratings/info/count`,
|
|
918
|
+
method: 'get',
|
|
919
|
+
params,
|
|
920
|
+
})
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
getSalesOpportunitiesStatuses(params: CommonParameters = {}): Promise<Array<OpportunityStatus>> {
|
|
924
|
+
return this.request({
|
|
925
|
+
path: `/sales/opportunities/statuses`,
|
|
926
|
+
method: 'get',
|
|
927
|
+
params,
|
|
928
|
+
})
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
postSalesOpportunitiesStatuses(status: OpportunityStatus): Promise<OpportunityStatus> {
|
|
932
|
+
return this.request({
|
|
933
|
+
path: `/sales/opportunities/statuses`,
|
|
934
|
+
method: 'post',
|
|
935
|
+
data: status,
|
|
936
|
+
})
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
getSalesOpportunitiesStatusesById(
|
|
940
|
+
id: number,
|
|
941
|
+
params: CommonParameters = {},
|
|
942
|
+
): Promise<OpportunityStatus> {
|
|
943
|
+
return this.request({
|
|
944
|
+
path: `/sales/opportunities/statuses/${id}`,
|
|
945
|
+
method: 'get',
|
|
946
|
+
params,
|
|
947
|
+
})
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
deleteSalesOpportunitiesStatusesById(id: number): Promise<NoContentResponse> {
|
|
951
|
+
return this.request({
|
|
952
|
+
path: `/sales/opportunities/statuses/${id}`,
|
|
953
|
+
method: 'delete',
|
|
954
|
+
})
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
putSalesOpportunitiesStatusesById(
|
|
958
|
+
id: number,
|
|
959
|
+
status: OpportunityStatus,
|
|
960
|
+
): Promise<OpportunityStatus> {
|
|
961
|
+
return this.request({
|
|
962
|
+
path: `/sales/opportunities/statuses/${id}`,
|
|
963
|
+
method: 'put',
|
|
964
|
+
data: status,
|
|
965
|
+
})
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
patchSalesOpportunitiesStatusesById(
|
|
969
|
+
id: number,
|
|
970
|
+
patchOperations: Array<PatchOperation>,
|
|
971
|
+
): Promise<OpportunityStatus> {
|
|
972
|
+
return this.request({
|
|
973
|
+
path: `/sales/opportunities/statuses/${id}`,
|
|
974
|
+
method: 'patch',
|
|
975
|
+
data: patchOperations,
|
|
976
|
+
})
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
getSalesOpportunitiesStatusesByIdInfo(
|
|
980
|
+
id: number,
|
|
981
|
+
params: CommonParameters = {},
|
|
982
|
+
): Promise<OpportunityStatusInfo> {
|
|
983
|
+
return this.request({
|
|
984
|
+
path: `/sales/opportunities/statuses/${id}/info`,
|
|
985
|
+
method: 'get',
|
|
986
|
+
params,
|
|
987
|
+
})
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
getSalesOpportunitiesStatusesByIdUsages(
|
|
991
|
+
id: number,
|
|
992
|
+
params: CommonParameters = {},
|
|
993
|
+
): Promise<Array<Usage>> {
|
|
994
|
+
return this.request({
|
|
995
|
+
path: `/sales/opportunities/statuses/${id}/usages`,
|
|
996
|
+
method: 'get',
|
|
997
|
+
params,
|
|
998
|
+
})
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
getSalesOpportunitiesStatusesByIdUsagesList(
|
|
1002
|
+
id: number,
|
|
1003
|
+
params: CommonParameters = {},
|
|
1004
|
+
): Promise<Array<Usage>> {
|
|
1005
|
+
return this.request({
|
|
1006
|
+
path: `/sales/opportunities/statuses/${id}/usages/list`,
|
|
1007
|
+
method: 'get',
|
|
1008
|
+
params,
|
|
1009
|
+
})
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
getSalesOpportunitiesStatusesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1013
|
+
return this.request({
|
|
1014
|
+
path: `/sales/opportunities/statuses/count`,
|
|
1015
|
+
method: 'get',
|
|
1016
|
+
params,
|
|
1017
|
+
})
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
getSalesOpportunitiesStatusesInfo(
|
|
1021
|
+
params: CommonParameters = {},
|
|
1022
|
+
): Promise<Array<OpportunityStatusInfo>> {
|
|
1023
|
+
return this.request({
|
|
1024
|
+
path: `/sales/opportunities/statuses/info`,
|
|
1025
|
+
method: 'get',
|
|
1026
|
+
params,
|
|
1027
|
+
})
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
getSalesOpportunitiesStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1031
|
+
return this.request({
|
|
1032
|
+
path: `/sales/opportunities/statuses/info/count`,
|
|
1033
|
+
method: 'get',
|
|
1034
|
+
params,
|
|
1035
|
+
})
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
getSalesOpportunitiesTypes(params: CommonParameters = {}): Promise<Array<OpportunityType>> {
|
|
1039
|
+
return this.request({
|
|
1040
|
+
path: `/sales/opportunities/types`,
|
|
1041
|
+
method: 'get',
|
|
1042
|
+
params,
|
|
1043
|
+
})
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
postSalesOpportunitiesTypes(opportunityType: OpportunityType): Promise<OpportunityType> {
|
|
1047
|
+
return this.request({
|
|
1048
|
+
path: `/sales/opportunities/types`,
|
|
1049
|
+
method: 'post',
|
|
1050
|
+
data: opportunityType,
|
|
1051
|
+
})
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
getSalesOpportunitiesTypesById(
|
|
1055
|
+
id: number,
|
|
1056
|
+
params: CommonParameters = {},
|
|
1057
|
+
): Promise<OpportunityType> {
|
|
1058
|
+
return this.request({
|
|
1059
|
+
path: `/sales/opportunities/types/${id}`,
|
|
1060
|
+
method: 'get',
|
|
1061
|
+
params,
|
|
1062
|
+
})
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
deleteSalesOpportunitiesTypesById(id: number): Promise<NoContentResponse> {
|
|
1066
|
+
return this.request({
|
|
1067
|
+
path: `/sales/opportunities/types/${id}`,
|
|
1068
|
+
method: 'delete',
|
|
1069
|
+
})
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
putSalesOpportunitiesTypesById(
|
|
1073
|
+
id: number,
|
|
1074
|
+
opportunityType: OpportunityType,
|
|
1075
|
+
): Promise<OpportunityType> {
|
|
1076
|
+
return this.request({
|
|
1077
|
+
path: `/sales/opportunities/types/${id}`,
|
|
1078
|
+
method: 'put',
|
|
1079
|
+
data: opportunityType,
|
|
1080
|
+
})
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
patchSalesOpportunitiesTypesById(
|
|
1084
|
+
id: number,
|
|
1085
|
+
patchOperations: Array<PatchOperation>,
|
|
1086
|
+
): Promise<OpportunityType> {
|
|
1087
|
+
return this.request({
|
|
1088
|
+
path: `/sales/opportunities/types/${id}`,
|
|
1089
|
+
method: 'patch',
|
|
1090
|
+
data: patchOperations,
|
|
1091
|
+
})
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
getSalesOpportunitiesTypesByIdInfo(
|
|
1095
|
+
id: number,
|
|
1096
|
+
params: CommonParameters = {},
|
|
1097
|
+
): Promise<OpportunityTypeInfo> {
|
|
1098
|
+
return this.request({
|
|
1099
|
+
path: `/sales/opportunities/types/${id}/info`,
|
|
1100
|
+
method: 'get',
|
|
1101
|
+
params,
|
|
1102
|
+
})
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
getSalesOpportunitiesTypesByIdUsages(
|
|
1106
|
+
id: number,
|
|
1107
|
+
params: CommonParameters = {},
|
|
1108
|
+
): Promise<Array<Usage>> {
|
|
1109
|
+
return this.request({
|
|
1110
|
+
path: `/sales/opportunities/types/${id}/usages`,
|
|
1111
|
+
method: 'get',
|
|
1112
|
+
params,
|
|
1113
|
+
})
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
getSalesOpportunitiesTypesByIdUsagesList(
|
|
1117
|
+
id: number,
|
|
1118
|
+
params: CommonParameters = {},
|
|
1119
|
+
): Promise<Array<Usage>> {
|
|
1120
|
+
return this.request({
|
|
1121
|
+
path: `/sales/opportunities/types/${id}/usages/list`,
|
|
1122
|
+
method: 'get',
|
|
1123
|
+
params,
|
|
1124
|
+
})
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
getSalesOpportunitiesTypesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1128
|
+
return this.request({
|
|
1129
|
+
path: `/sales/opportunities/types/count`,
|
|
1130
|
+
method: 'get',
|
|
1131
|
+
params,
|
|
1132
|
+
})
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
getSalesOpportunitiesTypesInfo(
|
|
1136
|
+
params: CommonParameters = {},
|
|
1137
|
+
): Promise<Array<OpportunityTypeInfo>> {
|
|
1138
|
+
return this.request({
|
|
1139
|
+
path: `/sales/opportunities/types/info`,
|
|
1140
|
+
method: 'get',
|
|
1141
|
+
params,
|
|
1142
|
+
})
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
getSalesOpportunitiesTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1146
|
+
return this.request({
|
|
1147
|
+
path: `/sales/opportunities/types/info/count`,
|
|
1148
|
+
method: 'get',
|
|
1149
|
+
params,
|
|
1150
|
+
})
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
getSalesOrders(params: CommonParameters = {}): Promise<Array<Order>> {
|
|
1154
|
+
return this.request({
|
|
1155
|
+
path: `/sales/orders`,
|
|
1156
|
+
method: 'get',
|
|
1157
|
+
params,
|
|
1158
|
+
})
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
postSalesOrders(order: Order): Promise<Order> {
|
|
1162
|
+
return this.request({
|
|
1163
|
+
path: `/sales/orders`,
|
|
1164
|
+
method: 'post',
|
|
1165
|
+
data: order,
|
|
1166
|
+
})
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
getSalesOrdersById(id: number, params: CommonParameters = {}): Promise<Order> {
|
|
1170
|
+
return this.request({
|
|
1171
|
+
path: `/sales/orders/${id}`,
|
|
1172
|
+
method: 'get',
|
|
1173
|
+
params,
|
|
1174
|
+
})
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
deleteSalesOrdersById(id: number): Promise<NoContentResponse> {
|
|
1178
|
+
return this.request({
|
|
1179
|
+
path: `/sales/orders/${id}`,
|
|
1180
|
+
method: 'delete',
|
|
1181
|
+
})
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
putSalesOrdersById(id: number, order: Order): Promise<Order> {
|
|
1185
|
+
return this.request({
|
|
1186
|
+
path: `/sales/orders/${id}`,
|
|
1187
|
+
method: 'put',
|
|
1188
|
+
data: order,
|
|
1189
|
+
})
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
patchSalesOrdersById(id: number, patchOperations: Array<PatchOperation>): Promise<Order> {
|
|
1193
|
+
return this.request({
|
|
1194
|
+
path: `/sales/orders/${id}`,
|
|
1195
|
+
method: 'patch',
|
|
1196
|
+
data: patchOperations,
|
|
1197
|
+
})
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
postSalesOrdersByIdConvertToServiceTicket(id: number): Promise<Ticket> {
|
|
1201
|
+
return this.request({
|
|
1202
|
+
path: `/sales/orders/${id}/convertToServiceTicket`,
|
|
1203
|
+
method: 'post',
|
|
1204
|
+
})
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
getSalesOrdersCount(params: CommonParameters = {}): Promise<Count> {
|
|
1208
|
+
return this.request({
|
|
1209
|
+
path: `/sales/orders/count`,
|
|
1210
|
+
method: 'get',
|
|
1211
|
+
params,
|
|
1212
|
+
})
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
getSalesOrdersStatuses(params: CommonParameters = {}): Promise<Array<OrderStatus>> {
|
|
1216
|
+
return this.request({
|
|
1217
|
+
path: `/sales/orders/statuses`,
|
|
1218
|
+
method: 'get',
|
|
1219
|
+
params,
|
|
1220
|
+
})
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
postSalesOrdersStatuses(status: OrderStatus): Promise<Array<OrderStatus>> {
|
|
1224
|
+
return this.request({
|
|
1225
|
+
path: `/sales/orders/statuses`,
|
|
1226
|
+
method: 'post',
|
|
1227
|
+
data: status,
|
|
1228
|
+
})
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
getSalesOrdersStatusesById(id: number, params: CommonParameters = {}): Promise<OrderStatus> {
|
|
1232
|
+
return this.request({
|
|
1233
|
+
path: `/sales/orders/statuses/${id}`,
|
|
1234
|
+
method: 'get',
|
|
1235
|
+
params,
|
|
1236
|
+
})
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
deleteSalesOrdersStatusesById(id: number): Promise<NoContentResponse> {
|
|
1240
|
+
return this.request({
|
|
1241
|
+
path: `/sales/orders/statuses/${id}`,
|
|
1242
|
+
method: 'delete',
|
|
1243
|
+
})
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
putSalesOrdersStatusesById(id: number, status: OrderStatus): Promise<OrderStatus> {
|
|
1247
|
+
return this.request({
|
|
1248
|
+
path: `/sales/orders/statuses/${id}`,
|
|
1249
|
+
method: 'put',
|
|
1250
|
+
data: status,
|
|
1251
|
+
})
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
patchSalesOrdersStatusesById(
|
|
1255
|
+
id: number,
|
|
1256
|
+
patchOperations: Array<PatchOperation>,
|
|
1257
|
+
): Promise<OrderStatus> {
|
|
1258
|
+
return this.request({
|
|
1259
|
+
path: `/sales/orders/statuses/${id}`,
|
|
1260
|
+
method: 'patch',
|
|
1261
|
+
data: patchOperations,
|
|
1262
|
+
})
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
getSalesOrdersStatusesByIdInfo(
|
|
1266
|
+
id: number,
|
|
1267
|
+
params: CommonParameters = {},
|
|
1268
|
+
): Promise<OrderStatusInfo> {
|
|
1269
|
+
return this.request({
|
|
1270
|
+
path: `/sales/orders/statuses/${id}/info`,
|
|
1271
|
+
method: 'get',
|
|
1272
|
+
params,
|
|
1273
|
+
})
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
getSalesOrdersStatusesByIdUsages(
|
|
1277
|
+
id: number,
|
|
1278
|
+
params: CommonParameters = {},
|
|
1279
|
+
): Promise<Array<Usage>> {
|
|
1280
|
+
return this.request({
|
|
1281
|
+
path: `/sales/orders/statuses/${id}/usages`,
|
|
1282
|
+
method: 'get',
|
|
1283
|
+
params,
|
|
1284
|
+
})
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
getSalesOrdersStatusesByIdUsagesList(
|
|
1288
|
+
id: number,
|
|
1289
|
+
params: CommonParameters = {},
|
|
1290
|
+
): Promise<Array<Usage>> {
|
|
1291
|
+
return this.request({
|
|
1292
|
+
path: `/sales/orders/statuses/${id}/usages/list`,
|
|
1293
|
+
method: 'get',
|
|
1294
|
+
params,
|
|
1295
|
+
})
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
getSalesOrdersStatusesByParentIdEmailtemplates(
|
|
1299
|
+
parentId: number,
|
|
1300
|
+
params: CommonParameters = {},
|
|
1301
|
+
): Promise<Array<OrderStatusEmailTemplate>> {
|
|
1302
|
+
return this.request({
|
|
1303
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/`,
|
|
1304
|
+
method: 'get',
|
|
1305
|
+
params,
|
|
1306
|
+
})
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
postSalesOrdersStatusesByParentIdEmailtemplates(
|
|
1310
|
+
parentId: number,
|
|
1311
|
+
orderStatusEmailTemplate: OrderStatusEmailTemplate,
|
|
1312
|
+
): Promise<OrderStatusEmailTemplate> {
|
|
1313
|
+
return this.request({
|
|
1314
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/`,
|
|
1315
|
+
method: 'post',
|
|
1316
|
+
data: orderStatusEmailTemplate,
|
|
1317
|
+
})
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
getSalesOrdersStatusesByParentIdEmailtemplatesById(
|
|
1321
|
+
id: number,
|
|
1322
|
+
parentId: number,
|
|
1323
|
+
params: CommonParameters = {},
|
|
1324
|
+
): Promise<OrderStatusEmailTemplate> {
|
|
1325
|
+
return this.request({
|
|
1326
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/${id}`,
|
|
1327
|
+
method: 'get',
|
|
1328
|
+
params,
|
|
1329
|
+
})
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
deleteSalesOrdersStatusesByParentIdEmailtemplatesById(
|
|
1333
|
+
id: number,
|
|
1334
|
+
parentId: number,
|
|
1335
|
+
): Promise<NoContentResponse> {
|
|
1336
|
+
return this.request({
|
|
1337
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/${id}`,
|
|
1338
|
+
method: 'delete',
|
|
1339
|
+
})
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
putSalesOrdersStatusesByParentIdEmailtemplatesById(
|
|
1343
|
+
id: number,
|
|
1344
|
+
parentId: number,
|
|
1345
|
+
orderStatusEmailTemplate: OrderStatusEmailTemplate,
|
|
1346
|
+
): Promise<OrderStatusEmailTemplate> {
|
|
1347
|
+
return this.request({
|
|
1348
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/${id}`,
|
|
1349
|
+
method: 'put',
|
|
1350
|
+
data: orderStatusEmailTemplate,
|
|
1351
|
+
})
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
patchSalesOrdersStatusesByParentIdEmailtemplatesById(
|
|
1355
|
+
id: number,
|
|
1356
|
+
parentId: number,
|
|
1357
|
+
patchOperations: Array<PatchOperation>,
|
|
1358
|
+
): Promise<OrderStatusEmailTemplate> {
|
|
1359
|
+
return this.request({
|
|
1360
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/${id}`,
|
|
1361
|
+
method: 'patch',
|
|
1362
|
+
data: patchOperations,
|
|
1363
|
+
})
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
getSalesOrdersStatusesByParentIdEmailtemplatesCount(
|
|
1367
|
+
parentId: number,
|
|
1368
|
+
params: CommonParameters = {},
|
|
1369
|
+
): Promise<Count> {
|
|
1370
|
+
return this.request({
|
|
1371
|
+
path: `/sales/orders/statuses/${parentId}/emailtemplates/count`,
|
|
1372
|
+
method: 'get',
|
|
1373
|
+
params,
|
|
1374
|
+
})
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
getSalesOrdersStatusesByParentIdNotifications(
|
|
1378
|
+
parentId: number,
|
|
1379
|
+
params: CommonParameters = {},
|
|
1380
|
+
): Promise<Array<OrderStatusNotification>> {
|
|
1381
|
+
return this.request({
|
|
1382
|
+
path: `/sales/orders/statuses/${parentId}/notifications`,
|
|
1383
|
+
method: 'get',
|
|
1384
|
+
params,
|
|
1385
|
+
})
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
postSalesOrdersStatusesByParentIdNotifications(
|
|
1389
|
+
parentId: number,
|
|
1390
|
+
orderStatusNotification: OrderStatusNotification,
|
|
1391
|
+
): Promise<OrderStatusNotification> {
|
|
1392
|
+
return this.request({
|
|
1393
|
+
path: `/sales/orders/statuses/${parentId}/notifications`,
|
|
1394
|
+
method: 'post',
|
|
1395
|
+
data: orderStatusNotification,
|
|
1396
|
+
})
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
getSalesOrdersStatusesByParentIdNotificationsById(
|
|
1400
|
+
id: number,
|
|
1401
|
+
parentId: number,
|
|
1402
|
+
params: CommonParameters = {},
|
|
1403
|
+
): Promise<OrderStatusNotification> {
|
|
1404
|
+
return this.request({
|
|
1405
|
+
path: `/sales/orders/statuses/${parentId}/notifications/${id}`,
|
|
1406
|
+
method: 'get',
|
|
1407
|
+
params,
|
|
1408
|
+
})
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
deleteSalesOrdersStatusesByParentIdNotificationsById(
|
|
1412
|
+
id: number,
|
|
1413
|
+
parentId: number,
|
|
1414
|
+
): Promise<NoContentResponse> {
|
|
1415
|
+
return this.request({
|
|
1416
|
+
path: `/sales/orders/statuses/${parentId}/notifications/${id}`,
|
|
1417
|
+
method: 'delete',
|
|
1418
|
+
})
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
putSalesOrdersStatusesByParentIdNotificationsById(
|
|
1422
|
+
id: number,
|
|
1423
|
+
parentId: number,
|
|
1424
|
+
orderStatusNotification: OrderStatusNotification,
|
|
1425
|
+
): Promise<OrderStatusNotification> {
|
|
1426
|
+
return this.request({
|
|
1427
|
+
path: `/sales/orders/statuses/${parentId}/notifications/${id}`,
|
|
1428
|
+
method: 'put',
|
|
1429
|
+
data: orderStatusNotification,
|
|
1430
|
+
})
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
patchSalesOrdersStatusesByParentIdNotificationsById(
|
|
1434
|
+
id: number,
|
|
1435
|
+
parentId: number,
|
|
1436
|
+
patchOperations: Array<PatchOperation>,
|
|
1437
|
+
): Promise<OrderStatusNotification> {
|
|
1438
|
+
return this.request({
|
|
1439
|
+
path: `/sales/orders/statuses/${parentId}/notifications/${id}`,
|
|
1440
|
+
method: 'patch',
|
|
1441
|
+
data: patchOperations,
|
|
1442
|
+
})
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
getSalesOrdersStatusesByParentIdNotificationsCount(
|
|
1446
|
+
parentId: number,
|
|
1447
|
+
params: CommonParameters = {},
|
|
1448
|
+
): Promise<Count> {
|
|
1449
|
+
return this.request({
|
|
1450
|
+
path: `/sales/orders/statuses/${parentId}/notifications/count`,
|
|
1451
|
+
method: 'get',
|
|
1452
|
+
params,
|
|
1453
|
+
})
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
getSalesOrdersStatusesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1457
|
+
return this.request({
|
|
1458
|
+
path: `/sales/orders/statuses/count`,
|
|
1459
|
+
method: 'get',
|
|
1460
|
+
params,
|
|
1461
|
+
})
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
getSalesOrdersStatusesInfo(params: CommonParameters = {}): Promise<Array<OrderStatusInfo>> {
|
|
1465
|
+
return this.request({
|
|
1466
|
+
path: `/sales/orders/statuses/info`,
|
|
1467
|
+
method: 'get',
|
|
1468
|
+
params,
|
|
1469
|
+
})
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
getSalesOrdersStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1473
|
+
return this.request({
|
|
1474
|
+
path: `/sales/orders/statuses/info/count`,
|
|
1475
|
+
method: 'get',
|
|
1476
|
+
params,
|
|
1477
|
+
})
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
getSalesProbabilities(params: CommonParameters = {}): Promise<Array<SalesProbability>> {
|
|
1481
|
+
return this.request({
|
|
1482
|
+
path: `/sales/probabilities`,
|
|
1483
|
+
method: 'get',
|
|
1484
|
+
params,
|
|
1485
|
+
})
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
postSalesProbabilities(probability: SalesProbability): Promise<SalesProbability> {
|
|
1489
|
+
return this.request({
|
|
1490
|
+
path: `/sales/probabilities`,
|
|
1491
|
+
method: 'post',
|
|
1492
|
+
data: probability,
|
|
1493
|
+
})
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
getSalesProbabilitiesById(id: number, params: CommonParameters = {}): Promise<SalesProbability> {
|
|
1497
|
+
return this.request({
|
|
1498
|
+
path: `/sales/probabilities/${id}`,
|
|
1499
|
+
method: 'get',
|
|
1500
|
+
params,
|
|
1501
|
+
})
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
deleteSalesProbabilitiesById(id: number): Promise<NoContentResponse> {
|
|
1505
|
+
return this.request({
|
|
1506
|
+
path: `/sales/probabilities/${id}`,
|
|
1507
|
+
method: 'delete',
|
|
1508
|
+
})
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
putSalesProbabilitiesById(id: number, probability: SalesProbability): Promise<SalesProbability> {
|
|
1512
|
+
return this.request({
|
|
1513
|
+
path: `/sales/probabilities/${id}`,
|
|
1514
|
+
method: 'put',
|
|
1515
|
+
data: probability,
|
|
1516
|
+
})
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
patchSalesProbabilitiesById(
|
|
1520
|
+
id: number,
|
|
1521
|
+
patchOperations: Array<PatchOperation>,
|
|
1522
|
+
): Promise<SalesProbability> {
|
|
1523
|
+
return this.request({
|
|
1524
|
+
path: `/sales/probabilities/${id}`,
|
|
1525
|
+
method: 'patch',
|
|
1526
|
+
data: patchOperations,
|
|
1527
|
+
})
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
getSalesProbabilitiesByIdInfo(
|
|
1531
|
+
id: number,
|
|
1532
|
+
params: CommonParameters = {},
|
|
1533
|
+
): Promise<SalesProbabilityInfo> {
|
|
1534
|
+
return this.request({
|
|
1535
|
+
path: `/sales/probabilities/${id}/info`,
|
|
1536
|
+
method: 'get',
|
|
1537
|
+
params,
|
|
1538
|
+
})
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
getSalesProbabilitiesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1542
|
+
return this.request({
|
|
1543
|
+
path: `/sales/probabilities/count`,
|
|
1544
|
+
method: 'get',
|
|
1545
|
+
params,
|
|
1546
|
+
})
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
getSalesProbabilitiesInfo(params: CommonParameters = {}): Promise<Array<SalesProbabilityInfo>> {
|
|
1550
|
+
return this.request({
|
|
1551
|
+
path: `/sales/probabilities/info`,
|
|
1552
|
+
method: 'get',
|
|
1553
|
+
params,
|
|
1554
|
+
})
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
getSalesProbabilitiesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1558
|
+
return this.request({
|
|
1559
|
+
path: `/sales/probabilities/info/count`,
|
|
1560
|
+
method: 'get',
|
|
1561
|
+
params,
|
|
1562
|
+
})
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
getSalesQuotas(params: CommonParameters = {}): Promise<Array<SalesQuota>> {
|
|
1566
|
+
return this.request({
|
|
1567
|
+
path: `/sales/quotas`,
|
|
1568
|
+
method: 'get',
|
|
1569
|
+
params,
|
|
1570
|
+
})
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
postSalesQuotas(salesQuota: SalesQuota): Promise<SalesQuota> {
|
|
1574
|
+
return this.request({
|
|
1575
|
+
path: `/sales/quotas`,
|
|
1576
|
+
method: 'post',
|
|
1577
|
+
data: salesQuota,
|
|
1578
|
+
})
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
getSalesQuotasById(id: number, params: CommonParameters = {}): Promise<SalesQuota> {
|
|
1582
|
+
return this.request({
|
|
1583
|
+
path: `/sales/quotas/${id}`,
|
|
1584
|
+
method: 'get',
|
|
1585
|
+
params,
|
|
1586
|
+
})
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
deleteSalesQuotasById(id: number): Promise<NoContentResponse> {
|
|
1590
|
+
return this.request({
|
|
1591
|
+
path: `/sales/quotas/${id}`,
|
|
1592
|
+
method: 'delete',
|
|
1593
|
+
})
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
putSalesQuotasById(id: number, salesQuota: SalesQuota): Promise<SalesQuota> {
|
|
1597
|
+
return this.request({
|
|
1598
|
+
path: `/sales/quotas/${id}`,
|
|
1599
|
+
method: 'put',
|
|
1600
|
+
data: salesQuota,
|
|
1601
|
+
})
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
patchSalesQuotasById(id: number, patchOperations: Array<PatchOperation>): Promise<SalesQuota> {
|
|
1605
|
+
return this.request({
|
|
1606
|
+
path: `/sales/quotas/${id}`,
|
|
1607
|
+
method: 'patch',
|
|
1608
|
+
data: patchOperations,
|
|
1609
|
+
})
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
getSalesQuotasCount(params: CommonParameters = {}): Promise<Count> {
|
|
1613
|
+
return this.request({
|
|
1614
|
+
path: `/sales/quotas/count`,
|
|
1615
|
+
method: 'get',
|
|
1616
|
+
params,
|
|
1617
|
+
})
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
getSalesRoles(params: CommonParameters = {}): Promise<Array<Role>> {
|
|
1621
|
+
return this.request({
|
|
1622
|
+
path: `/sales/roles`,
|
|
1623
|
+
method: 'get',
|
|
1624
|
+
params,
|
|
1625
|
+
})
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
postSalesRoles(role: Role): Promise<Role> {
|
|
1629
|
+
return this.request({
|
|
1630
|
+
path: `/sales/roles`,
|
|
1631
|
+
method: 'post',
|
|
1632
|
+
data: role,
|
|
1633
|
+
})
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
getSalesRolesById(id: number, params: CommonParameters = {}): Promise<Role> {
|
|
1637
|
+
return this.request({
|
|
1638
|
+
path: `/sales/roles/${id}`,
|
|
1639
|
+
method: 'get',
|
|
1640
|
+
params,
|
|
1641
|
+
})
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
deleteSalesRolesById(id: number): Promise<NoContentResponse> {
|
|
1645
|
+
return this.request({
|
|
1646
|
+
path: `/sales/roles/${id}`,
|
|
1647
|
+
method: 'delete',
|
|
1648
|
+
})
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
putSalesRolesById(id: number, role: Role): Promise<Role> {
|
|
1652
|
+
return this.request({
|
|
1653
|
+
path: `/sales/roles/${id}`,
|
|
1654
|
+
method: 'put',
|
|
1655
|
+
data: role,
|
|
1656
|
+
})
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
patchSalesRolesById(id: number, patchOperations: Array<PatchOperation>): Promise<Role> {
|
|
1660
|
+
return this.request({
|
|
1661
|
+
path: `/sales/roles/${id}`,
|
|
1662
|
+
method: 'patch',
|
|
1663
|
+
data: patchOperations,
|
|
1664
|
+
})
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
getSalesRolesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1668
|
+
return this.request({
|
|
1669
|
+
path: `/sales/roles/count`,
|
|
1670
|
+
method: 'get',
|
|
1671
|
+
params,
|
|
1672
|
+
})
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
getSalesSalesTeams(params: CommonParameters = {}): Promise<Array<SalesTeam>> {
|
|
1676
|
+
return this.request({
|
|
1677
|
+
path: `/sales/salesTeams`,
|
|
1678
|
+
method: 'get',
|
|
1679
|
+
params,
|
|
1680
|
+
})
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
postSalesSalesTeams(salesTeam: SalesTeam): Promise<SalesTeam> {
|
|
1684
|
+
return this.request({
|
|
1685
|
+
path: `/sales/salesTeams`,
|
|
1686
|
+
method: 'post',
|
|
1687
|
+
data: salesTeam,
|
|
1688
|
+
})
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
getSalesSalesTeamsById(id: number, params: CommonParameters = {}): Promise<SalesTeam> {
|
|
1692
|
+
return this.request({
|
|
1693
|
+
path: `/sales/salesTeams/${id}`,
|
|
1694
|
+
method: 'get',
|
|
1695
|
+
params,
|
|
1696
|
+
})
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
deleteSalesSalesTeamsById(id: number): Promise<NoContentResponse> {
|
|
1700
|
+
return this.request({
|
|
1701
|
+
path: `/sales/salesTeams/${id}`,
|
|
1702
|
+
method: 'delete',
|
|
1703
|
+
})
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
putSalesSalesTeamsById(id: number, salesTeam: SalesTeam): Promise<SalesTeam> {
|
|
1707
|
+
return this.request({
|
|
1708
|
+
path: `/sales/salesTeams/${id}`,
|
|
1709
|
+
method: 'put',
|
|
1710
|
+
data: salesTeam,
|
|
1711
|
+
})
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
patchSalesSalesTeamsById(id: number, patchOperations: Array<PatchOperation>): Promise<SalesTeam> {
|
|
1715
|
+
return this.request({
|
|
1716
|
+
path: `/sales/salesTeams/${id}`,
|
|
1717
|
+
method: 'patch',
|
|
1718
|
+
data: patchOperations,
|
|
1719
|
+
})
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
getSalesSalesTeamsByParentIdMembers(
|
|
1723
|
+
parentId: number,
|
|
1724
|
+
params: CommonParameters = {},
|
|
1725
|
+
): Promise<Array<SalesTeamMember>> {
|
|
1726
|
+
return this.request({
|
|
1727
|
+
path: `/sales/salesTeams/${parentId}/members`,
|
|
1728
|
+
method: 'get',
|
|
1729
|
+
params,
|
|
1730
|
+
})
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
postSalesSalesTeamsByParentIdMembers(
|
|
1734
|
+
parentId: number,
|
|
1735
|
+
salesTeamMember: SalesTeamMember,
|
|
1736
|
+
): Promise<SalesTeamMember> {
|
|
1737
|
+
return this.request({
|
|
1738
|
+
path: `/sales/salesTeams/${parentId}/members`,
|
|
1739
|
+
method: 'post',
|
|
1740
|
+
data: salesTeamMember,
|
|
1741
|
+
})
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
getSalesSalesTeamsByParentIdMembersById(
|
|
1745
|
+
id: number,
|
|
1746
|
+
parentId: number,
|
|
1747
|
+
params: CommonParameters = {},
|
|
1748
|
+
): Promise<SalesTeamMember> {
|
|
1749
|
+
return this.request({
|
|
1750
|
+
path: `/sales/salesTeams/${parentId}/members/${id}`,
|
|
1751
|
+
method: 'get',
|
|
1752
|
+
params,
|
|
1753
|
+
})
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
deleteSalesSalesTeamsByParentIdMembersById(
|
|
1757
|
+
id: number,
|
|
1758
|
+
parentId: number,
|
|
1759
|
+
): Promise<NoContentResponse> {
|
|
1760
|
+
return this.request({
|
|
1761
|
+
path: `/sales/salesTeams/${parentId}/members/${id}`,
|
|
1762
|
+
method: 'delete',
|
|
1763
|
+
})
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
putSalesSalesTeamsByParentIdMembersById(
|
|
1767
|
+
id: number,
|
|
1768
|
+
parentId: number,
|
|
1769
|
+
salesTeamMember: SalesTeamMember,
|
|
1770
|
+
): Promise<SalesTeamMember> {
|
|
1771
|
+
return this.request({
|
|
1772
|
+
path: `/sales/salesTeams/${parentId}/members/${id}`,
|
|
1773
|
+
method: 'put',
|
|
1774
|
+
data: salesTeamMember,
|
|
1775
|
+
})
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
patchSalesSalesTeamsByParentIdMembersById(
|
|
1779
|
+
id: number,
|
|
1780
|
+
parentId: number,
|
|
1781
|
+
patchOperations: Array<PatchOperation>,
|
|
1782
|
+
): Promise<SalesTeamMember> {
|
|
1783
|
+
return this.request({
|
|
1784
|
+
path: `/sales/salesTeams/${parentId}/members/${id}`,
|
|
1785
|
+
method: 'patch',
|
|
1786
|
+
data: patchOperations,
|
|
1787
|
+
})
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
getSalesSalesTeamsByParentIdMembersCount(
|
|
1791
|
+
parentId: number,
|
|
1792
|
+
params: CommonParameters = {},
|
|
1793
|
+
): Promise<Count> {
|
|
1794
|
+
return this.request({
|
|
1795
|
+
path: `/sales/salesTeams/${parentId}/members/count`,
|
|
1796
|
+
method: 'get',
|
|
1797
|
+
params,
|
|
1798
|
+
})
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
getSalesSalesTeamsCount(params: CommonParameters = {}): Promise<Count> {
|
|
1802
|
+
return this.request({
|
|
1803
|
+
path: `/sales/salesTeams/count`,
|
|
1804
|
+
method: 'get',
|
|
1805
|
+
params,
|
|
1806
|
+
})
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
getSalesScheduleHolidaylistsInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1810
|
+
return this.request({
|
|
1811
|
+
path: `/sales/schedule/holidaylists/info/count`,
|
|
1812
|
+
method: 'get',
|
|
1813
|
+
params,
|
|
1814
|
+
})
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
getSalesServicePriorityInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1818
|
+
return this.request({
|
|
1819
|
+
path: `/sales/service/priority/info/count`,
|
|
1820
|
+
method: 'get',
|
|
1821
|
+
params,
|
|
1822
|
+
})
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
getSalesStages(params: CommonParameters = {}): Promise<Array<OpportunityStage>> {
|
|
1826
|
+
return this.request({
|
|
1827
|
+
path: `/sales/stages`,
|
|
1828
|
+
method: 'get',
|
|
1829
|
+
params,
|
|
1830
|
+
})
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
postSalesStages(stage: OpportunityStage): Promise<OpportunityStage> {
|
|
1834
|
+
return this.request({
|
|
1835
|
+
path: `/sales/stages`,
|
|
1836
|
+
method: 'post',
|
|
1837
|
+
data: stage,
|
|
1838
|
+
})
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
getSalesStagesById(id: number, params: CommonParameters = {}): Promise<OpportunityStage> {
|
|
1842
|
+
return this.request({
|
|
1843
|
+
path: `/sales/stages/${id}`,
|
|
1844
|
+
method: 'get',
|
|
1845
|
+
params,
|
|
1846
|
+
})
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
deleteSalesStagesById(id: number): Promise<NoContentResponse> {
|
|
1850
|
+
return this.request({
|
|
1851
|
+
path: `/sales/stages/${id}`,
|
|
1852
|
+
method: 'delete',
|
|
1853
|
+
})
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
putSalesStagesById(id: number, stage: OpportunityStage): Promise<OpportunityStage> {
|
|
1857
|
+
return this.request({
|
|
1858
|
+
path: `/sales/stages/${id}`,
|
|
1859
|
+
method: 'put',
|
|
1860
|
+
data: stage,
|
|
1861
|
+
})
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
patchSalesStagesById(
|
|
1865
|
+
id: number,
|
|
1866
|
+
patchOperations: Array<PatchOperation>,
|
|
1867
|
+
): Promise<OpportunityStage> {
|
|
1868
|
+
return this.request({
|
|
1869
|
+
path: `/sales/stages/${id}`,
|
|
1870
|
+
method: 'patch',
|
|
1871
|
+
data: patchOperations,
|
|
1872
|
+
})
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
getSalesStagesByIdInfo(id: number, params: CommonParameters = {}): Promise<OpportunityStageInfo> {
|
|
1876
|
+
return this.request({
|
|
1877
|
+
path: `/sales/stages/${id}/info`,
|
|
1878
|
+
method: 'get',
|
|
1879
|
+
params,
|
|
1880
|
+
})
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
getSalesStagesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
|
|
1884
|
+
return this.request({
|
|
1885
|
+
path: `/sales/stages/${id}/usages`,
|
|
1886
|
+
method: 'get',
|
|
1887
|
+
params,
|
|
1888
|
+
})
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
getSalesStagesByIdUsagesList(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
|
|
1892
|
+
return this.request({
|
|
1893
|
+
path: `/sales/stages/${id}/usages/list`,
|
|
1894
|
+
method: 'get',
|
|
1895
|
+
params,
|
|
1896
|
+
})
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
getSalesStagesCount(params: CommonParameters = {}): Promise<Count> {
|
|
1900
|
+
return this.request({
|
|
1901
|
+
path: `/sales/stages/count`,
|
|
1902
|
+
method: 'get',
|
|
1903
|
+
params,
|
|
1904
|
+
})
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
getSalesStagesInfo(params: CommonParameters = {}): Promise<Array<OpportunityStageInfo>> {
|
|
1908
|
+
return this.request({
|
|
1909
|
+
path: `/sales/stages/info`,
|
|
1910
|
+
method: 'get',
|
|
1911
|
+
params,
|
|
1912
|
+
})
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
getSalesStagesInfoCount(params: CommonParameters = {}): Promise<Count> {
|
|
1916
|
+
return this.request({
|
|
1917
|
+
path: `/sales/stages/info/count`,
|
|
1918
|
+
method: 'get',
|
|
1919
|
+
params,
|
|
1920
|
+
})
|
|
1921
|
+
}
|
|
1922
|
+
}
|