asana 3.1.2 → 3.1.3
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/README.md +13 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/AccessRequestsApi.js +1 -1
- package/dist/api/AllocationsApi.js +1 -1
- package/dist/api/AttachmentsApi.js +1 -1
- package/dist/api/AuditLogAPIApi.js +1 -1
- package/dist/api/BatchAPIApi.js +1 -1
- package/dist/api/BudgetsApi.js +290 -0
- package/dist/api/CustomFieldSettingsApi.js +1 -1
- package/dist/api/CustomFieldsApi.js +1 -1
- package/dist/api/CustomTypesApi.js +1 -1
- package/dist/api/EventsApi.js +1 -1
- package/dist/api/ExportsApi.js +1 -1
- package/dist/api/GoalRelationshipsApi.js +1 -1
- package/dist/api/GoalsApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MembershipsApi.js +1 -1
- package/dist/api/OrganizationExportsApi.js +1 -1
- package/dist/api/PortfolioMembershipsApi.js +1 -1
- package/dist/api/PortfoliosApi.js +1 -1
- package/dist/api/ProjectBriefsApi.js +1 -1
- package/dist/api/ProjectMembershipsApi.js +1 -1
- package/dist/api/ProjectStatusesApi.js +1 -1
- package/dist/api/ProjectTemplatesApi.js +1 -1
- package/dist/api/ProjectsApi.js +1 -1
- package/dist/api/RatesApi.js +305 -0
- package/dist/api/ReactionsApi.js +1 -1
- package/dist/api/RulesApi.js +1 -1
- package/dist/api/SectionsApi.js +1 -1
- package/dist/api/StatusUpdatesApi.js +1 -1
- package/dist/api/StoriesApi.js +1 -1
- package/dist/api/TagsApi.js +1 -1
- package/dist/api/TaskTemplatesApi.js +1 -1
- package/dist/api/TasksApi.js +3 -3
- package/dist/api/TeamMembershipsApi.js +1 -1
- package/dist/api/TeamsApi.js +1 -1
- package/dist/api/TimePeriodsApi.js +1 -1
- package/dist/api/TimeTrackingEntriesApi.js +7 -7
- package/dist/api/TypeaheadApi.js +1 -1
- package/dist/api/UserTaskListsApi.js +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/api/WebhooksApi.js +1 -1
- package/dist/api/WorkspaceMembershipsApi.js +1 -1
- package/dist/api/WorkspacesApi.js +3 -3
- package/dist/index.js +14 -0
- package/package.json +1 -1
- package/src/ApiClient.js +3 -3
- package/src/api/AccessRequestsApi.js +1 -1
- package/src/api/AllocationsApi.js +1 -1
- package/src/api/AttachmentsApi.js +1 -1
- package/src/api/AuditLogAPIApi.js +1 -1
- package/src/api/BatchAPIApi.js +1 -1
- package/src/api/BudgetsApi.js +350 -0
- package/src/api/CustomFieldSettingsApi.js +1 -1
- package/src/api/CustomFieldsApi.js +1 -1
- package/src/api/CustomTypesApi.js +1 -1
- package/src/api/EventsApi.js +1 -1
- package/src/api/ExportsApi.js +1 -1
- package/src/api/GoalRelationshipsApi.js +1 -1
- package/src/api/GoalsApi.js +1 -1
- package/src/api/JobsApi.js +1 -1
- package/src/api/MembershipsApi.js +1 -1
- package/src/api/OrganizationExportsApi.js +1 -1
- package/src/api/PortfolioMembershipsApi.js +1 -1
- package/src/api/PortfoliosApi.js +1 -1
- package/src/api/ProjectBriefsApi.js +1 -1
- package/src/api/ProjectMembershipsApi.js +1 -1
- package/src/api/ProjectStatusesApi.js +1 -1
- package/src/api/ProjectTemplatesApi.js +1 -1
- package/src/api/ProjectsApi.js +1 -1
- package/src/api/RatesApi.js +363 -0
- package/src/api/ReactionsApi.js +1 -1
- package/src/api/RulesApi.js +1 -1
- package/src/api/SectionsApi.js +1 -1
- package/src/api/StatusUpdatesApi.js +1 -1
- package/src/api/StoriesApi.js +1 -1
- package/src/api/TagsApi.js +1 -1
- package/src/api/TaskTemplatesApi.js +1 -1
- package/src/api/TasksApi.js +3 -3
- package/src/api/TeamMembershipsApi.js +1 -1
- package/src/api/TeamsApi.js +1 -1
- package/src/api/TimePeriodsApi.js +1 -1
- package/src/api/TimeTrackingEntriesApi.js +7 -7
- package/src/api/TypeaheadApi.js +1 -1
- package/src/api/UserTaskListsApi.js +1 -1
- package/src/api/UsersApi.js +1 -1
- package/src/api/WebhooksApi.js +1 -1
- package/src/api/WorkspaceMembershipsApi.js +1 -1
- package/src/api/WorkspacesApi.js +3 -3
- package/src/index.js +15 -1
package/src/ApiClient.js
CHANGED
|
@@ -16,7 +16,7 @@ import superagent from "superagent";
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @module ApiClient
|
|
19
|
-
* @version 3.1.
|
|
19
|
+
* @version 3.1.3
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -417,7 +417,7 @@ export class ApiClient {
|
|
|
417
417
|
if (typeof(navigator) === 'undefined' || typeof(window) === 'undefined') {
|
|
418
418
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
|
|
419
419
|
{
|
|
420
|
-
'version': "3.1.
|
|
420
|
+
'version': "3.1.3",
|
|
421
421
|
'language': 'NodeJS',
|
|
422
422
|
'language_version': process.version,
|
|
423
423
|
'os': process.platform
|
|
@@ -426,7 +426,7 @@ export class ApiClient {
|
|
|
426
426
|
} else {
|
|
427
427
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
|
|
428
428
|
{
|
|
429
|
-
'version': "3.1.
|
|
429
|
+
'version': "3.1.3",
|
|
430
430
|
'language': 'BrowserJS'
|
|
431
431
|
}
|
|
432
432
|
).toString();
|
package/src/api/BatchAPIApi.js
CHANGED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Asana
|
|
3
|
+
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
import {ApiClient} from "../ApiClient";
|
|
16
|
+
var Collection = require('../utils/collection');
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Budgets service.
|
|
20
|
+
* @module api/BudgetsApi
|
|
21
|
+
* @version 3.1.3
|
|
22
|
+
*/
|
|
23
|
+
export class BudgetsApi {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new BudgetsApi.
|
|
27
|
+
* @alias module:api/BudgetsApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instanc
|
|
31
|
+
e} if unspecified.
|
|
32
|
+
*/
|
|
33
|
+
constructor(apiClient) {
|
|
34
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Create a budget
|
|
41
|
+
* Creates a new budget.
|
|
42
|
+
* @param {module:model/Object} body The budget to create.
|
|
43
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
44
|
+
*/
|
|
45
|
+
createBudgetWithHttpInfo(body) {
|
|
46
|
+
|
|
47
|
+
let postBody = body;
|
|
48
|
+
// verify the required parameter 'body' is set
|
|
49
|
+
if (body === undefined || body === null) {
|
|
50
|
+
throw new Error("Missing the required parameter 'body' when calling createBudget");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
let pathParams = {
|
|
54
|
+
|
|
55
|
+
};
|
|
56
|
+
let queryParams = {};
|
|
57
|
+
|
|
58
|
+
let headerParams = {
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
let formParams = {
|
|
62
|
+
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
let authNames = ['personalAccessToken'];
|
|
66
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
67
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
68
|
+
let returnType = 'Blob';
|
|
69
|
+
|
|
70
|
+
return this.apiClient.callApi(
|
|
71
|
+
'/budgets', 'POST',
|
|
72
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
73
|
+
authNames, contentTypes, accepts, returnType
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Create a budget
|
|
79
|
+
* Creates a new budget.
|
|
80
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The budget to create.
|
|
81
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BudgetResponseData}
|
|
82
|
+
*/
|
|
83
|
+
createBudget(body) {
|
|
84
|
+
|
|
85
|
+
return this.createBudgetWithHttpInfo(body)
|
|
86
|
+
.then(function(response_and_data) {
|
|
87
|
+
return response_and_data.data;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Delete a budget
|
|
94
|
+
* A specific, existing budget can be deleted by making a DELETE request on the URL for that budget. Returns an empty data record.
|
|
95
|
+
* @param {String} budget_gid Globally unique identifier for the budget.
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
97
|
+
*/
|
|
98
|
+
deleteBudgetWithHttpInfo(budget_gid) {
|
|
99
|
+
|
|
100
|
+
let postBody = null;
|
|
101
|
+
// verify the required parameter 'budget_gid' is set
|
|
102
|
+
if (budget_gid === undefined || budget_gid === null) {
|
|
103
|
+
throw new Error("Missing the required parameter 'budget_gid' when calling deleteBudget");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
let pathParams = {
|
|
107
|
+
'budget_gid': budget_gid
|
|
108
|
+
};
|
|
109
|
+
let queryParams = {};
|
|
110
|
+
|
|
111
|
+
let headerParams = {
|
|
112
|
+
|
|
113
|
+
};
|
|
114
|
+
let formParams = {
|
|
115
|
+
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
let authNames = ['personalAccessToken'];
|
|
119
|
+
let contentTypes = [];
|
|
120
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
121
|
+
let returnType = 'Blob';
|
|
122
|
+
|
|
123
|
+
return this.apiClient.callApi(
|
|
124
|
+
'/budgets/{budget_gid}', 'DELETE',
|
|
125
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
126
|
+
authNames, contentTypes, accepts, returnType
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Delete a budget
|
|
132
|
+
* A specific, existing budget can be deleted by making a DELETE request on the URL for that budget. Returns an empty data record.
|
|
133
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} budget_gid Globally unique identifier for the budget.
|
|
134
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
|
135
|
+
*/
|
|
136
|
+
deleteBudget(budget_gid) {
|
|
137
|
+
|
|
138
|
+
return this.deleteBudgetWithHttpInfo(budget_gid)
|
|
139
|
+
.then(function(response_and_data) {
|
|
140
|
+
return response_and_data.data;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Get a budget
|
|
147
|
+
* Returns the complete budget record for a single budget.
|
|
148
|
+
* @param {String} budget_gid Globally unique identifier for the budget.
|
|
149
|
+
* @param {Object} opts Optional parameters
|
|
150
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
151
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
152
|
+
*/
|
|
153
|
+
getBudgetWithHttpInfo(budget_gid, opts) {
|
|
154
|
+
opts = opts || {};
|
|
155
|
+
let postBody = null;
|
|
156
|
+
// verify the required parameter 'budget_gid' is set
|
|
157
|
+
if (budget_gid === undefined || budget_gid === null) {
|
|
158
|
+
throw new Error("Missing the required parameter 'budget_gid' when calling getBudget");
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let pathParams = {
|
|
162
|
+
'budget_gid': budget_gid
|
|
163
|
+
};
|
|
164
|
+
let queryParams = {};
|
|
165
|
+
opts = opts || {};
|
|
166
|
+
queryParams = opts;
|
|
167
|
+
|
|
168
|
+
let headerParams = {
|
|
169
|
+
|
|
170
|
+
};
|
|
171
|
+
let formParams = {
|
|
172
|
+
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
let authNames = ['personalAccessToken'];
|
|
176
|
+
let contentTypes = [];
|
|
177
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
178
|
+
let returnType = 'Blob';
|
|
179
|
+
|
|
180
|
+
return this.apiClient.callApi(
|
|
181
|
+
'/budgets/{budget_gid}', 'GET',
|
|
182
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
183
|
+
authNames, contentTypes, accepts, returnType
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Get a budget
|
|
189
|
+
* Returns the complete budget record for a single budget.
|
|
190
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} budget_gid Globally unique identifier for the budget.
|
|
191
|
+
* @param {Object} opts Optional parameters
|
|
192
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
193
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BudgetResponseData}
|
|
194
|
+
*/
|
|
195
|
+
getBudget(budget_gid, opts) {
|
|
196
|
+
|
|
197
|
+
return this.getBudgetWithHttpInfo(budget_gid, opts)
|
|
198
|
+
.then(function(response_and_data) {
|
|
199
|
+
return response_and_data.data;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Get all budgets
|
|
206
|
+
* Gets all budgets for a given *parent*. This will at most return a list of size 1 for a given *parent*.
|
|
207
|
+
* @param {String} parent Globally unique identifier for the budget's parent object. This currently can only be a `project`.
|
|
208
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
209
|
+
*/
|
|
210
|
+
getBudgetsWithHttpInfo(parent) {
|
|
211
|
+
|
|
212
|
+
let postBody = null;
|
|
213
|
+
// verify the required parameter 'parent' is set
|
|
214
|
+
if (parent === undefined || parent === null) {
|
|
215
|
+
throw new Error("Missing the required parameter 'parent' when calling getBudgets");
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
let pathParams = {
|
|
219
|
+
|
|
220
|
+
};
|
|
221
|
+
let queryParams = {};
|
|
222
|
+
queryParams['parent'] = parent;
|
|
223
|
+
|
|
224
|
+
let headerParams = {
|
|
225
|
+
|
|
226
|
+
};
|
|
227
|
+
let formParams = {
|
|
228
|
+
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
let authNames = ['personalAccessToken'];
|
|
232
|
+
let contentTypes = [];
|
|
233
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
234
|
+
let returnType = 'Blob';
|
|
235
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
236
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
237
|
+
return Collection.fromApiClient(
|
|
238
|
+
this.apiClient.callApi(
|
|
239
|
+
'/budgets', 'GET',
|
|
240
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
241
|
+
authNames, contentTypes, accepts, returnType
|
|
242
|
+
),
|
|
243
|
+
this.apiClient,
|
|
244
|
+
{
|
|
245
|
+
'path': '/budgets',
|
|
246
|
+
'httpMethod': 'GET',
|
|
247
|
+
'pathParams': pathParams,
|
|
248
|
+
'queryParams': queryParams,
|
|
249
|
+
'headerParams': headerParams,
|
|
250
|
+
'formParams': formParams,
|
|
251
|
+
'bodyParam': postBody,
|
|
252
|
+
'authNames': authNames,
|
|
253
|
+
'contentTypes': contentTypes,
|
|
254
|
+
'accepts': accepts,
|
|
255
|
+
'returnType': returnType
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return this.apiClient.callApi(
|
|
261
|
+
'/budgets', 'GET',
|
|
262
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
263
|
+
authNames, contentTypes, accepts, returnType
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Get all budgets
|
|
269
|
+
* Gets all budgets for a given *parent*. This will at most return a list of size 1 for a given *parent*.
|
|
270
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} parent Globally unique identifier for the budget's parent object. This currently can only be a `project`.
|
|
271
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BudgetResponseArray}
|
|
272
|
+
*/
|
|
273
|
+
getBudgets(parent) {
|
|
274
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
275
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
276
|
+
return this.getBudgetsWithHttpInfo(parent)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return this.getBudgetsWithHttpInfo(parent)
|
|
280
|
+
.then(function(response_and_data) {
|
|
281
|
+
return response_and_data.data;
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Update a budget
|
|
288
|
+
* An existing budget can be updated by making a PUT request on the URL for that budget. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged.
|
|
289
|
+
* @param {module:model/Object} body The budget to update.
|
|
290
|
+
* @param {String} budget_gid Globally unique identifier for the budget.
|
|
291
|
+
* @param {Object} opts Optional parameters
|
|
292
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
293
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
294
|
+
*/
|
|
295
|
+
updateBudgetWithHttpInfo(body, budget_gid, opts) {
|
|
296
|
+
opts = opts || {};
|
|
297
|
+
let postBody = body;
|
|
298
|
+
// verify the required parameter 'body' is set
|
|
299
|
+
if (body === undefined || body === null) {
|
|
300
|
+
throw new Error("Missing the required parameter 'body' when calling updateBudget");
|
|
301
|
+
}
|
|
302
|
+
// verify the required parameter 'budget_gid' is set
|
|
303
|
+
if (budget_gid === undefined || budget_gid === null) {
|
|
304
|
+
throw new Error("Missing the required parameter 'budget_gid' when calling updateBudget");
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
let pathParams = {
|
|
308
|
+
'budget_gid': budget_gid
|
|
309
|
+
};
|
|
310
|
+
let queryParams = {};
|
|
311
|
+
opts = opts || {};
|
|
312
|
+
queryParams = opts;
|
|
313
|
+
|
|
314
|
+
let headerParams = {
|
|
315
|
+
|
|
316
|
+
};
|
|
317
|
+
let formParams = {
|
|
318
|
+
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
let authNames = ['personalAccessToken'];
|
|
322
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
323
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
324
|
+
let returnType = 'Blob';
|
|
325
|
+
|
|
326
|
+
return this.apiClient.callApi(
|
|
327
|
+
'/budgets/{budget_gid}', 'PUT',
|
|
328
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
329
|
+
authNames, contentTypes, accepts, returnType
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Update a budget
|
|
335
|
+
* An existing budget can be updated by making a PUT request on the URL for that budget. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged.
|
|
336
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The budget to update.
|
|
337
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} budget_gid Globally unique identifier for the budget.
|
|
338
|
+
* @param {Object} opts Optional parameters
|
|
339
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
340
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BudgetResponseData}
|
|
341
|
+
*/
|
|
342
|
+
updateBudget(body, budget_gid, opts) {
|
|
343
|
+
|
|
344
|
+
return this.updateBudgetWithHttpInfo(body, budget_gid, opts)
|
|
345
|
+
.then(function(response_and_data) {
|
|
346
|
+
return response_and_data.data;
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
}
|
package/src/api/EventsApi.js
CHANGED
package/src/api/ExportsApi.js
CHANGED
package/src/api/GoalsApi.js
CHANGED
package/src/api/JobsApi.js
CHANGED
package/src/api/PortfoliosApi.js
CHANGED