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
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RatesApi = void 0;
|
|
7
|
+
var _ApiClient = require("../ApiClient");
|
|
8
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
10
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
11
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
|
|
14
|
+
* Asana
|
|
15
|
+
* 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).
|
|
16
|
+
*
|
|
17
|
+
* OpenAPI spec version: 1.0
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
|
+
*
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
|
+
*
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
var Collection = require('../utils/collection');
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Rates service.
|
|
31
|
+
* @module api/RatesApi
|
|
32
|
+
* @version 3.1.3
|
|
33
|
+
*/
|
|
34
|
+
var RatesApi = exports.RatesApi = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new RatesApi.
|
|
37
|
+
* @alias module:api/RatesApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instanc
|
|
41
|
+
e} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function RatesApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, RatesApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Create a rate
|
|
50
|
+
* Creates a new rate for a `parent` + `resource` combination.
|
|
51
|
+
* @param {module:model/Object} body The rate to create.
|
|
52
|
+
* @param {Object} opts Optional parameters
|
|
53
|
+
* @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.
|
|
54
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(RatesApi, [{
|
|
57
|
+
key: "createRateWithHttpInfo",
|
|
58
|
+
value: function createRateWithHttpInfo(body, opts) {
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
var postBody = body;
|
|
61
|
+
// verify the required parameter 'body' is set
|
|
62
|
+
if (body === undefined || body === null) {
|
|
63
|
+
throw new Error("Missing the required parameter 'body' when calling createRate");
|
|
64
|
+
}
|
|
65
|
+
var pathParams = {};
|
|
66
|
+
var queryParams = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
queryParams = opts;
|
|
69
|
+
var headerParams = {};
|
|
70
|
+
var formParams = {};
|
|
71
|
+
var authNames = ['personalAccessToken'];
|
|
72
|
+
var contentTypes = ['application/json; charset=UTF-8'];
|
|
73
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
74
|
+
var returnType = 'Blob';
|
|
75
|
+
return this.apiClient.callApi('/rates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Create a rate
|
|
80
|
+
* Creates a new rate for a `parent` + `resource` combination.
|
|
81
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The rate to create.
|
|
82
|
+
* @param {Object} opts Optional parameters
|
|
83
|
+
* @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.
|
|
84
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RateResponseData}
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "createRate",
|
|
88
|
+
value: function createRate(body, opts) {
|
|
89
|
+
return this.createRateWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
90
|
+
return response_and_data.data;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Delete a rate
|
|
96
|
+
* Deletes a rate.
|
|
97
|
+
* @param {String} rate_gid Globally unique identifier for the rate.
|
|
98
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "deleteRateWithHttpInfo",
|
|
102
|
+
value: function deleteRateWithHttpInfo(rate_gid) {
|
|
103
|
+
var postBody = null;
|
|
104
|
+
// verify the required parameter 'rate_gid' is set
|
|
105
|
+
if (rate_gid === undefined || rate_gid === null) {
|
|
106
|
+
throw new Error("Missing the required parameter 'rate_gid' when calling deleteRate");
|
|
107
|
+
}
|
|
108
|
+
var pathParams = {
|
|
109
|
+
'rate_gid': rate_gid
|
|
110
|
+
};
|
|
111
|
+
var queryParams = {};
|
|
112
|
+
var headerParams = {};
|
|
113
|
+
var formParams = {};
|
|
114
|
+
var authNames = ['personalAccessToken'];
|
|
115
|
+
var contentTypes = [];
|
|
116
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
117
|
+
var returnType = 'Blob';
|
|
118
|
+
return this.apiClient.callApi('/rates/{rate_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Delete a rate
|
|
123
|
+
* Deletes a rate.
|
|
124
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} rate_gid Globally unique identifier for the rate.
|
|
125
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "deleteRate",
|
|
129
|
+
value: function deleteRate(rate_gid) {
|
|
130
|
+
return this.deleteRateWithHttpInfo(rate_gid).then(function (response_and_data) {
|
|
131
|
+
return response_and_data.data;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Get a rate
|
|
137
|
+
* Returns the complete rate record for a single rate.
|
|
138
|
+
* @param {String} rate_gid Globally unique identifier for the rate.
|
|
139
|
+
* @param {Object} opts Optional parameters
|
|
140
|
+
* @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.
|
|
141
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
142
|
+
*/
|
|
143
|
+
}, {
|
|
144
|
+
key: "getRateWithHttpInfo",
|
|
145
|
+
value: function getRateWithHttpInfo(rate_gid, opts) {
|
|
146
|
+
opts = opts || {};
|
|
147
|
+
var postBody = null;
|
|
148
|
+
// verify the required parameter 'rate_gid' is set
|
|
149
|
+
if (rate_gid === undefined || rate_gid === null) {
|
|
150
|
+
throw new Error("Missing the required parameter 'rate_gid' when calling getRate");
|
|
151
|
+
}
|
|
152
|
+
var pathParams = {
|
|
153
|
+
'rate_gid': rate_gid
|
|
154
|
+
};
|
|
155
|
+
var queryParams = {};
|
|
156
|
+
opts = opts || {};
|
|
157
|
+
queryParams = opts;
|
|
158
|
+
var headerParams = {};
|
|
159
|
+
var formParams = {};
|
|
160
|
+
var authNames = ['personalAccessToken'];
|
|
161
|
+
var contentTypes = [];
|
|
162
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
163
|
+
var returnType = 'Blob';
|
|
164
|
+
return this.apiClient.callApi('/rates/{rate_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Get a rate
|
|
169
|
+
* Returns the complete rate record for a single rate.
|
|
170
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} rate_gid Globally unique identifier for the rate.
|
|
171
|
+
* @param {Object} opts Optional parameters
|
|
172
|
+
* @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.
|
|
173
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RateResponseData}
|
|
174
|
+
*/
|
|
175
|
+
}, {
|
|
176
|
+
key: "getRate",
|
|
177
|
+
value: function getRate(rate_gid, opts) {
|
|
178
|
+
return this.getRateWithHttpInfo(rate_gid, opts).then(function (response_and_data) {
|
|
179
|
+
return response_and_data.data;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Get multiple rates
|
|
185
|
+
* Returns a list of `rate` records. The possible types for `parent` in this request are `project`. An additional `resource` (`user` GID or `placeholder` GID) can be passed in to filter to a specific rate. Modifying placeholder rates is only available for Enterprise and Enterprise+ users.
|
|
186
|
+
* @param {Object} opts Optional parameters
|
|
187
|
+
* @param {String} opts.parent Globally unique identifier for `project`.
|
|
188
|
+
* @param {String} opts.resource Globally unique identifier for `user` or `placeholder`.
|
|
189
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
190
|
+
* @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
191
|
+
* @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.
|
|
192
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "getRatesWithHttpInfo",
|
|
196
|
+
value: function getRatesWithHttpInfo(opts) {
|
|
197
|
+
opts = opts || {};
|
|
198
|
+
var postBody = null;
|
|
199
|
+
var pathParams = {};
|
|
200
|
+
var queryParams = {};
|
|
201
|
+
opts = opts || {};
|
|
202
|
+
queryParams = opts;
|
|
203
|
+
var headerParams = {};
|
|
204
|
+
var formParams = {};
|
|
205
|
+
var authNames = ['personalAccessToken'];
|
|
206
|
+
var contentTypes = [];
|
|
207
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
208
|
+
var returnType = 'Blob';
|
|
209
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
210
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
211
|
+
return Collection.fromApiClient(this.apiClient.callApi('/rates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
212
|
+
'path': '/rates',
|
|
213
|
+
'httpMethod': 'GET',
|
|
214
|
+
'pathParams': pathParams,
|
|
215
|
+
'queryParams': queryParams,
|
|
216
|
+
'headerParams': headerParams,
|
|
217
|
+
'formParams': formParams,
|
|
218
|
+
'bodyParam': postBody,
|
|
219
|
+
'authNames': authNames,
|
|
220
|
+
'contentTypes': contentTypes,
|
|
221
|
+
'accepts': accepts,
|
|
222
|
+
'returnType': returnType
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return this.apiClient.callApi('/rates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Get multiple rates
|
|
230
|
+
* Returns a list of `rate` records. The possible types for `parent` in this request are `project`. An additional `resource` (`user` GID or `placeholder` GID) can be passed in to filter to a specific rate. Modifying placeholder rates is only available for Enterprise and Enterprise+ users.
|
|
231
|
+
* @param {Object} opts Optional parameters
|
|
232
|
+
* @param {String} opts.parent Globally unique identifier for `project`.
|
|
233
|
+
* @param {String} opts.resource Globally unique identifier for `user` or `placeholder`.
|
|
234
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
235
|
+
* @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
236
|
+
* @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.
|
|
237
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RateOrPlaceholderCompactArray}
|
|
238
|
+
*/
|
|
239
|
+
}, {
|
|
240
|
+
key: "getRates",
|
|
241
|
+
value: function getRates(opts) {
|
|
242
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
243
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
244
|
+
return this.getRatesWithHttpInfo(opts);
|
|
245
|
+
}
|
|
246
|
+
return this.getRatesWithHttpInfo(opts).then(function (response_and_data) {
|
|
247
|
+
return response_and_data.data;
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Update a rate
|
|
253
|
+
* An existing rate can be updated by making a PUT request on the URL for that rate. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. (note that at this time, the only field that can be updated is the `rate` field.) Returns the complete updated rate record.
|
|
254
|
+
* @param {module:model/Object} body The updated fields for the rate.
|
|
255
|
+
* @param {String} rate_gid Globally unique identifier for the rate.
|
|
256
|
+
* @param {Object} opts Optional parameters
|
|
257
|
+
* @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.
|
|
258
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
259
|
+
*/
|
|
260
|
+
}, {
|
|
261
|
+
key: "updateRateWithHttpInfo",
|
|
262
|
+
value: function updateRateWithHttpInfo(body, rate_gid, opts) {
|
|
263
|
+
opts = opts || {};
|
|
264
|
+
var postBody = body;
|
|
265
|
+
// verify the required parameter 'body' is set
|
|
266
|
+
if (body === undefined || body === null) {
|
|
267
|
+
throw new Error("Missing the required parameter 'body' when calling updateRate");
|
|
268
|
+
}
|
|
269
|
+
// verify the required parameter 'rate_gid' is set
|
|
270
|
+
if (rate_gid === undefined || rate_gid === null) {
|
|
271
|
+
throw new Error("Missing the required parameter 'rate_gid' when calling updateRate");
|
|
272
|
+
}
|
|
273
|
+
var pathParams = {
|
|
274
|
+
'rate_gid': rate_gid
|
|
275
|
+
};
|
|
276
|
+
var queryParams = {};
|
|
277
|
+
opts = opts || {};
|
|
278
|
+
queryParams = opts;
|
|
279
|
+
var headerParams = {};
|
|
280
|
+
var formParams = {};
|
|
281
|
+
var authNames = ['personalAccessToken'];
|
|
282
|
+
var contentTypes = ['application/json; charset=UTF-8'];
|
|
283
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
284
|
+
var returnType = 'Blob';
|
|
285
|
+
return this.apiClient.callApi('/rates/{rate_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Update a rate
|
|
290
|
+
* An existing rate can be updated by making a PUT request on the URL for that rate. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. (note that at this time, the only field that can be updated is the `rate` field.) Returns the complete updated rate record.
|
|
291
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The updated fields for the rate.
|
|
292
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} rate_gid Globally unique identifier for the rate.
|
|
293
|
+
* @param {Object} opts Optional parameters
|
|
294
|
+
* @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.
|
|
295
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RateResponseData}
|
|
296
|
+
*/
|
|
297
|
+
}, {
|
|
298
|
+
key: "updateRate",
|
|
299
|
+
value: function updateRate(body, rate_gid, opts) {
|
|
300
|
+
return this.updateRateWithHttpInfo(body, rate_gid, opts).then(function (response_and_data) {
|
|
301
|
+
return response_and_data.data;
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}]);
|
|
305
|
+
}();
|
package/dist/api/ReactionsApi.js
CHANGED
package/dist/api/RulesApi.js
CHANGED
package/dist/api/SectionsApi.js
CHANGED
package/dist/api/StoriesApi.js
CHANGED
package/dist/api/TagsApi.js
CHANGED
package/dist/api/TasksApi.js
CHANGED
|
@@ -35,7 +35,7 @@ var Collection = require('../utils/collection');
|
|
|
35
35
|
/**
|
|
36
36
|
* Tasks service.
|
|
37
37
|
* @module api/TasksApi
|
|
38
|
-
* @version 3.1.
|
|
38
|
+
* @version 3.1.3
|
|
39
39
|
*/
|
|
40
40
|
var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
|
|
41
41
|
/**
|
|
@@ -1606,7 +1606,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
|
|
|
1606
1606
|
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Set the parent of a task
|
|
1609
|
-
* <b>Required scope: </b><code>tasks:write</code> parent
|
|
1609
|
+
* <b>Required scope: </b><code>tasks:write</code> Updates the parent of a given task. This endpoint can be used to make a task a subtask of another task, or to remove its existing parent. When using `insert_before` and `insert_after`, at most one of those two options can be specified, and they must already be subtasks of the parent. Returns the complete, updated record of the affected [task](/reference/tasks#/task).
|
|
1610
1610
|
* @param {module:model/Object} body The new parent of the subtask.
|
|
1611
1611
|
* @param {String} task_gid The task to operate on.
|
|
1612
1612
|
* @param {Object} opts Optional parameters
|
|
@@ -1643,7 +1643,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
|
|
|
1643
1643
|
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Set the parent of a task
|
|
1646
|
-
* <b>Required scope: </b><code>tasks:write</code> parent
|
|
1646
|
+
* <b>Required scope: </b><code>tasks:write</code> Updates the parent of a given task. This endpoint can be used to make a task a subtask of another task, or to remove its existing parent. When using `insert_before` and `insert_after`, at most one of those two options can be specified, and they must already be subtasks of the parent. Returns the complete, updated record of the affected [task](/reference/tasks#/task).
|
|
1647
1647
|
* @param {<&vendorExtensions.x-jsdoc-type>} body The new parent of the subtask.
|
|
1648
1648
|
* @param {<&vendorExtensions.x-jsdoc-type>} task_gid The task to operate on.
|
|
1649
1649
|
* @param {Object} opts Optional parameters
|
package/dist/api/TeamsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TimeTrackingEntries service.
|
|
31
31
|
* @module api/TimeTrackingEntriesApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.3
|
|
33
33
|
*/
|
|
34
34
|
var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -142,7 +142,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Get multiple time tracking entries
|
|
145
|
-
* Returns a list of time tracking entries filtered to a task, attributed project, portfolio or user.
|
|
145
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns a list of time tracking entries filtered to a task, attributed project, portfolio or user.
|
|
146
146
|
* @param {Object} opts Optional parameters
|
|
147
147
|
* @param {String} opts.task Globally unique identifier for the task to filter time tracking entries by.
|
|
148
148
|
* @param {String} opts.attributable_to Globally unique identifier for the project the time tracking entries are attributed to.
|
|
@@ -190,7 +190,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Get multiple time tracking entries
|
|
193
|
-
* Returns a list of time tracking entries filtered to a task, attributed project, portfolio or user.
|
|
193
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns a list of time tracking entries filtered to a task, attributed project, portfolio or user.
|
|
194
194
|
* @param {Object} opts Optional parameters
|
|
195
195
|
* @param {String} opts.task Globally unique identifier for the task to filter time tracking entries by.
|
|
196
196
|
* @param {String} opts.attributable_to Globally unique identifier for the project the time tracking entries are attributed to.
|
|
@@ -216,7 +216,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Get time tracking entries for a task
|
|
219
|
-
* Returns time tracking entries for a given task.
|
|
219
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns time tracking entries for a given task.
|
|
220
220
|
* @param {String} task_gid The task to operate on.
|
|
221
221
|
* @param {Object} opts Optional parameters
|
|
222
222
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -266,7 +266,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* Get time tracking entries for a task
|
|
269
|
-
* Returns time tracking entries for a given task.
|
|
269
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns time tracking entries for a given task.
|
|
270
270
|
* @param {<&vendorExtensions.x-jsdoc-type>} task_gid The task to operate on.
|
|
271
271
|
* @param {Object} opts Optional parameters
|
|
272
272
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -288,7 +288,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* Get a time tracking entry
|
|
291
|
-
* Returns the complete time tracking entry record for a single time tracking entry.
|
|
291
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns the complete time tracking entry record for a single time tracking entry.
|
|
292
292
|
* @param {String} time_tracking_entry_gid Globally unique identifier for the time tracking entry.
|
|
293
293
|
* @param {Object} opts Optional parameters
|
|
294
294
|
* @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.
|
|
@@ -320,7 +320,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Get a time tracking entry
|
|
323
|
-
* Returns the complete time tracking entry record for a single time tracking entry.
|
|
323
|
+
* <b>Required scope: </b><code>time_tracking_entries:read</code> Returns the complete time tracking entry record for a single time tracking entry.
|
|
324
324
|
* @param {<&vendorExtensions.x-jsdoc-type>} time_tracking_entry_gid Globally unique identifier for the time tracking entry.
|
|
325
325
|
* @param {Object} opts Optional parameters
|
|
326
326
|
* @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.
|
package/dist/api/TypeaheadApi.js
CHANGED
package/dist/api/UsersApi.js
CHANGED
package/dist/api/WebhooksApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* WorkspaceMemberships service.
|
|
31
31
|
* @module api/WorkspaceMembershipsApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.3
|
|
33
33
|
*/
|
|
34
34
|
var WorkspaceMembershipsApi = exports.WorkspaceMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Workspaces service.
|
|
31
31
|
* @module api/WorkspacesApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.3
|
|
33
33
|
*/
|
|
34
34
|
var WorkspacesApi = exports.WorkspacesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -281,7 +281,7 @@ var WorkspacesApi = exports.WorkspacesApi = /*#__PURE__*/function () {
|
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* Remove a user from a workspace or organization
|
|
284
|
-
* Remove a user from a workspace or organization.
|
|
284
|
+
* Remove a user from a workspace or organization. The user making this call must be an admin in the workspace. The user can be referenced by their globally unique user ID or their email address. When invoked using a **Service Account Token (SAT)**, this endpoint follows the same behavior as the [SCIM API Delete endpoint](/docs/scim). To learn more about how Asana handles user deprovisioning, refer to our [Help Center article on deprovisioning users](https://help.asana.com/s/article/user-deprovisioning). When invoked using a **Personal Access Token (PAT)**, the endpoint behaves similarly, except that ownership of the user’s resources is transferred to the **PAT owner** instead of the admin [specified in the Admin Console](https://help.asana.com/s/article/user-deprovisioning#gl-deprovisioning). **Note:** If you wish to retain access to a user’s private resources (i.e., those visible only to that user), you have to make them public manually (or ask the user to do so) before removal. Returns an empty data record.
|
|
285
285
|
* @param {module:model/Object} body The user to remove from the workspace.
|
|
286
286
|
* @param {String} workspace_gid Globally unique identifier for the workspace or organization.
|
|
287
287
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
@@ -313,7 +313,7 @@ var WorkspacesApi = exports.WorkspacesApi = /*#__PURE__*/function () {
|
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
315
|
* Remove a user from a workspace or organization
|
|
316
|
-
* Remove a user from a workspace or organization.
|
|
316
|
+
* Remove a user from a workspace or organization. The user making this call must be an admin in the workspace. The user can be referenced by their globally unique user ID or their email address. When invoked using a **Service Account Token (SAT)**, this endpoint follows the same behavior as the [SCIM API Delete endpoint](/docs/scim). To learn more about how Asana handles user deprovisioning, refer to our [Help Center article on deprovisioning users](https://help.asana.com/s/article/user-deprovisioning). When invoked using a **Personal Access Token (PAT)**, the endpoint behaves similarly, except that ownership of the user’s resources is transferred to the **PAT owner** instead of the admin [specified in the Admin Console](https://help.asana.com/s/article/user-deprovisioning#gl-deprovisioning). **Note:** If you wish to retain access to a user’s private resources (i.e., those visible only to that user), you have to make them public manually (or ask the user to do so) before removal. Returns an empty data record.
|
|
317
317
|
* @param {<&vendorExtensions.x-jsdoc-type>} body The user to remove from the workspace.
|
|
318
318
|
* @param {<&vendorExtensions.x-jsdoc-type>} workspace_gid Globally unique identifier for the workspace or organization.
|
|
319
319
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,12 @@ Object.defineProperty(exports, "BatchAPIApi", {
|
|
|
39
39
|
return _BatchAPIApi.BatchAPIApi;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "BudgetsApi", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _BudgetsApi.BudgetsApi;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
42
48
|
Object.defineProperty(exports, "CustomFieldSettingsApi", {
|
|
43
49
|
enumerable: true,
|
|
44
50
|
get: function get() {
|
|
@@ -141,6 +147,12 @@ Object.defineProperty(exports, "ProjectsApi", {
|
|
|
141
147
|
return _ProjectsApi.ProjectsApi;
|
|
142
148
|
}
|
|
143
149
|
});
|
|
150
|
+
Object.defineProperty(exports, "RatesApi", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _RatesApi.RatesApi;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
144
156
|
Object.defineProperty(exports, "ReactionsApi", {
|
|
145
157
|
enumerable: true,
|
|
146
158
|
get: function get() {
|
|
@@ -255,6 +267,7 @@ var _AllocationsApi = require("./api/AllocationsApi");
|
|
|
255
267
|
var _AttachmentsApi = require("./api/AttachmentsApi");
|
|
256
268
|
var _AuditLogAPIApi = require("./api/AuditLogAPIApi");
|
|
257
269
|
var _BatchAPIApi = require("./api/BatchAPIApi");
|
|
270
|
+
var _BudgetsApi = require("./api/BudgetsApi");
|
|
258
271
|
var _CustomFieldSettingsApi = require("./api/CustomFieldSettingsApi");
|
|
259
272
|
var _CustomFieldsApi = require("./api/CustomFieldsApi");
|
|
260
273
|
var _CustomTypesApi = require("./api/CustomTypesApi");
|
|
@@ -272,6 +285,7 @@ var _ProjectMembershipsApi = require("./api/ProjectMembershipsApi");
|
|
|
272
285
|
var _ProjectStatusesApi = require("./api/ProjectStatusesApi");
|
|
273
286
|
var _ProjectTemplatesApi = require("./api/ProjectTemplatesApi");
|
|
274
287
|
var _ProjectsApi = require("./api/ProjectsApi");
|
|
288
|
+
var _RatesApi = require("./api/RatesApi");
|
|
275
289
|
var _ReactionsApi = require("./api/ReactionsApi");
|
|
276
290
|
var _RulesApi = require("./api/RulesApi");
|
|
277
291
|
var _SectionsApi = require("./api/SectionsApi");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asana",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "This_is_the_interface_for_interacting_with_the__Asana_Platform_httpsdevelopers_asana_com__Our_API_reference_is_generated_from_our__OpenAPI_spec__httpsraw_githubusercontent_comAsanaopenapimasterdefsasana_oas_yaml_",
|
|
5
5
|
"license": "Apache 2.0",
|
|
6
6
|
"main": "dist/index.js",
|