@aloma.io/integration-sdk 3.8.53 → 3.8.55

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.
@@ -1,192 +0,0 @@
1
- import {AbstractController} from '@aloma.io/integration-sdk';
2
-
3
- export default class Controller extends AbstractController {
4
-
5
- /**
6
- * Retrieve a batch of companies
7
- *
8
- * Retrieve a batch of companies by ID (`companyId`) or by a unique property (`idProperty`). You can specify what is returned using the `properties` query parameter.
9
- *
10
- * @param {Object} args - Request arguments
11
- * @param {boolean} args.archived (optional) - Whether to return only results that have been archived. [query]
12
- *
13
- * @param {Object} args.body (required) - Request body
14
- *
15
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/batch/read response
16
- */
17
- async read(args: any) {
18
- // TODO: Implement POST /crm/v3/objects/companies/batch/read
19
- throw new Error('Method not implemented');
20
- }
21
-
22
- /**
23
- * Retrieve companies
24
- *
25
- * Retrieve all companies, using query parameters to control the information that gets returned.
26
- *
27
- * @param {Object} args - Request arguments
28
- * @param {integer} args.limit (optional) - The maximum number of results to display per page. [query]
29
- * @param {string} args.after (optional) - The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. [query]
30
- * @param {array} args.properties (optional) - A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. [query]
31
- * @param {array} args.propertiesWithHistory (optional) - A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request. [query]
32
- * @param {array} args.associations (optional) - A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. [query]
33
- * @param {boolean} args.archived (optional) - Whether to return only results that have been archived. [query]
34
- *
35
- * @returns {Promise<Object>} GET /crm/v3/objects/companies response
36
- */
37
- async getPage(args: any) {
38
- // TODO: Implement GET /crm/v3/objects/companies
39
- throw new Error('Method not implemented');
40
- }
41
-
42
- /**
43
- * Create a company
44
- *
45
- * Create a single company. Include a `properties` object to define [property values](https://developers.hubspot.com/docs/guides/api/crm/properties) for the company, along with an `associations` array to define [associations](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4) with other CRM records.
46
- *
47
- * @param {Object} args.body (required) - Request body
48
- *
49
- * @returns {Promise<Object>} POST /crm/v3/objects/companies response
50
- */
51
- async create(args: any) {
52
- // TODO: Implement POST /crm/v3/objects/companies
53
- throw new Error('Method not implemented');
54
- }
55
-
56
- /**
57
- * Search for companies
58
- *
59
- * Search for companies by filtering on properties, searching through associations, and sorting results. Learn more about [CRM search](https://developers.hubspot.com/docs/guides/api/crm/search#make-a-search-request).
60
- *
61
- * @param {Object} args.body (required) - Request body
62
- *
63
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/search response
64
- */
65
- async doSearch(args: any) {
66
- // TODO: Implement POST /crm/v3/objects/companies/search
67
- throw new Error('Method not implemented');
68
- }
69
-
70
- /**
71
- * Retrieve a company
72
- *
73
- * Retrieve a company by its ID (`companyId`) or by a unique property (`idProperty`). You can specify what is returned using the `properties` query parameter.
74
- *
75
- * @param {Object} args - Request arguments
76
- * @param {string} args.companyId (required) - The ID of the company [path]
77
- * @param {array} args.properties (optional) - A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. [query]
78
- * @param {array} args.propertiesWithHistory (optional) - A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. [query]
79
- * @param {array} args.associations (optional) - A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. [query]
80
- * @param {boolean} args.archived (optional) - Whether to return only results that have been archived. [query]
81
- * @param {string} args.idProperty (optional) - The name of a property whose values are unique for this object [query]
82
- *
83
- * @returns {Promise<Object>} GET /crm/v3/objects/companies/{companyId} response
84
- */
85
- async getById(args: any) {
86
- // TODO: Implement GET /crm/v3/objects/companies/{companyId}
87
- throw new Error('Method not implemented');
88
- }
89
-
90
- /**
91
- * Update a company
92
- *
93
- * Update a company by ID (`companyId`) or unique property value (`idProperty`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.
94
- *
95
- * @param {Object} args - Request arguments
96
- * @param {string} args.companyId (required) [path]
97
- * @param {string} args.idProperty (optional) - The name of a property whose values are unique for this object [query]
98
- *
99
- * @param {Object} args.body (required) - Request body
100
- *
101
- * @returns {Promise<Object>} PATCH /crm/v3/objects/companies/{companyId} response
102
- */
103
- async update(args: any) {
104
- // TODO: Implement PATCH /crm/v3/objects/companies/{companyId}
105
- throw new Error('Method not implemented');
106
- }
107
-
108
- /**
109
- * Archive a company
110
- *
111
- * Delete a company by ID. Deleted companies can be restored within 90 days of deletion. Learn more about [restoring records](https://knowledge.hubspot.com/records/restore-deleted-records).
112
- *
113
- * @param {Object} args - Request arguments
114
- * @param {string} args.companyId (required) [path]
115
- *
116
- * @returns {Promise<Object>} DELETE /crm/v3/objects/companies/{companyId} response
117
- */
118
- async archive(args: any) {
119
- // TODO: Implement DELETE /crm/v3/objects/companies/{companyId}
120
- throw new Error('Method not implemented');
121
- }
122
-
123
- /**
124
- * Create or update a batch of companies by unique property values
125
- *
126
- * Create or update companies identified by a unique property value as specified by the `idProperty` query parameter. `idProperty` query param refers to a property whose values are unique for the object.
127
- *
128
- * @param {Object} args.body (required) - Request body
129
- *
130
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/batch/upsert response
131
- */
132
- async upsert(args: any) {
133
- // TODO: Implement POST /crm/v3/objects/companies/batch/upsert
134
- throw new Error('Method not implemented');
135
- }
136
-
137
- /**
138
- * Create a batch of companies
139
- *
140
- * Create a batch of companies. The `inputs` array can contain a `properties` object to define property values for each company, along with an `associations` array to define [associations](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4) with other CRM records.
141
- *
142
- * @param {Object} args.body (required) - Request body
143
- *
144
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/batch/create response
145
- */
146
- async create(args: any) {
147
- // TODO: Implement POST /crm/v3/objects/companies/batch/create
148
- throw new Error('Method not implemented');
149
- }
150
-
151
- /**
152
- * Update a batch of companies
153
- *
154
- * Update a batch of companies by ID.
155
- *
156
- * @param {Object} args.body (required) - Request body
157
- *
158
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/batch/update response
159
- */
160
- async update(args: any) {
161
- // TODO: Implement POST /crm/v3/objects/companies/batch/update
162
- throw new Error('Method not implemented');
163
- }
164
-
165
- /**
166
- * Archive a batch of companies
167
- *
168
- * Delete a batch of companies by ID. Deleted companies can be restored within 90 days of deletion. Learn more about [restoring records](https://knowledge.hubspot.com/records/restore-deleted-records).
169
- *
170
- * @param {Object} args.body (required) - Request body
171
- *
172
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/batch/archive response
173
- */
174
- async archive(args: any) {
175
- // TODO: Implement POST /crm/v3/objects/companies/batch/archive
176
- throw new Error('Method not implemented');
177
- }
178
-
179
- /**
180
- * Merge two companies
181
- *
182
- * Merge two company records. Learn more about [merging records](https://knowledge.hubspot.com/records/merge-records).
183
- *
184
- * @param {Object} args.body (required) - Request body
185
- *
186
- * @returns {Promise<Object>} POST /crm/v3/objects/companies/merge response
187
- */
188
- async merge(args: any) {
189
- // TODO: Implement POST /crm/v3/objects/companies/merge
190
- throw new Error('Method not implemented');
191
- }
192
- }