asana 3.0.2 → 3.0.4
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/.github/workflows/publish.yaml +78 -38
- package/.swagger-codegen/VERSION +1 -1
- package/README.md +140 -29
- package/codegen/templates/README.mustache +129 -26
- package/codegen/templates/api.mustache +17 -15
- package/dist/ApiClient.js +6 -7
- package/dist/api/AllocationsApi.js +307 -0
- package/dist/api/AttachmentsApi.js +22 -95
- package/dist/api/AuditLogAPIApi.js +10 -14
- package/dist/api/BatchAPIApi.js +10 -14
- package/dist/api/CustomFieldSettingsApi.js +16 -23
- package/dist/api/CustomFieldsApi.js +38 -203
- package/dist/api/EventsApi.js +12 -16
- package/dist/api/GoalRelationshipsApi.js +26 -122
- package/dist/api/GoalsApi.js +48 -239
- package/dist/api/JobsApi.js +8 -32
- package/dist/api/MembershipsApi.js +73 -99
- package/dist/api/OrganizationExportsApi.js +12 -59
- package/dist/api/PortfolioMembershipsApi.js +20 -50
- package/dist/api/PortfoliosApi.js +56 -293
- package/dist/api/ProjectBriefsApi.js +20 -113
- package/dist/api/ProjectMembershipsApi.js +14 -41
- package/dist/api/ProjectStatusesApi.js +22 -95
- package/dist/api/ProjectTemplatesApi.js +28 -104
- package/dist/api/ProjectsApi.js +88 -446
- package/dist/api/RulesApi.js +8 -32
- package/dist/api/SectionsApi.js +34 -176
- package/dist/api/StatusUpdatesApi.js +22 -95
- package/dist/api/StoriesApi.js +26 -122
- package/dist/api/TagsApi.js +42 -167
- package/dist/api/TaskTemplatesApi.js +63 -72
- package/dist/api/TasksApi.js +173 -544
- package/dist/api/TeamMembershipsApi.js +26 -59
- package/dist/api/TeamsApi.js +36 -158
- package/dist/api/TimePeriodsApi.js +14 -41
- package/dist/api/TimeTrackingEntriesApi.js +26 -122
- package/dist/api/TypeaheadApi.js +12 -16
- package/dist/api/UserTaskListsApi.js +12 -59
- package/dist/api/UsersApi.js +32 -68
- package/dist/api/WebhooksApi.js +26 -122
- package/dist/api/WorkspaceMembershipsApi.js +20 -50
- package/dist/api/WorkspacesApi.js +26 -122
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/ApiClient.js +4 -4
- package/src/api/AllocationsApi.js +365 -0
- package/src/api/AttachmentsApi.js +42 -134
- package/src/api/AuditLogAPIApi.js +15 -17
- package/src/api/BatchAPIApi.js +15 -17
- package/src/api/CustomFieldSettingsApi.js +28 -32
- package/src/api/CustomFieldsApi.js +78 -290
- package/src/api/EventsApi.js +17 -19
- package/src/api/GoalRelationshipsApi.js +51 -173
- package/src/api/GoalsApi.js +100 -344
- package/src/api/JobsApi.js +11 -41
- package/src/api/MembershipsApi.js +105 -138
- package/src/api/OrganizationExportsApi.js +20 -80
- package/src/api/PortfolioMembershipsApi.js +37 -71
- package/src/api/PortfoliosApi.js +118 -422
- package/src/api/ProjectBriefsApi.js +38 -158
- package/src/api/ProjectMembershipsApi.js +24 -56
- package/src/api/ProjectStatusesApi.js +42 -134
- package/src/api/ProjectTemplatesApi.js +55 -149
- package/src/api/ProjectsApi.js +189 -647
- package/src/api/RulesApi.js +11 -41
- package/src/api/SectionsApi.js +69 -251
- package/src/api/StatusUpdatesApi.js +42 -134
- package/src/api/StoriesApi.js +51 -173
- package/src/api/TagsApi.js +86 -242
- package/src/api/TaskTemplatesApi.js +86 -95
- package/src/api/TasksApi.js +330 -799
- package/src/api/TeamMembershipsApi.js +50 -86
- package/src/api/TeamsApi.js +73 -227
- package/src/api/TimePeriodsApi.js +24 -56
- package/src/api/TimeTrackingEntriesApi.js +51 -173
- package/src/api/TypeaheadApi.js +17 -19
- package/src/api/UserTaskListsApi.js +20 -80
- package/src/api/UsersApi.js +63 -101
- package/src/api/WebhooksApi.js +51 -173
- package/src/api/WorkspaceMembershipsApi.js +37 -71
- package/src/api/WorkspacesApi.js +51 -173
- package/src/index.js +9 -2
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TimeTrackingEntries service.
|
|
31
31
|
* @module api/TimeTrackingEntriesApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -54,7 +54,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
54
54
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact 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.
|
|
55
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
56
56
|
*/
|
|
57
|
-
_createClass(TimeTrackingEntriesApi, [{
|
|
57
|
+
return _createClass(TimeTrackingEntriesApi, [{
|
|
58
58
|
key: "createTimeTrackingEntryWithHttpInfo",
|
|
59
59
|
value: function createTimeTrackingEntryWithHttpInfo(body, task_gid, opts) {
|
|
60
60
|
opts = opts || {};
|
|
@@ -79,25 +79,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
79
79
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
80
80
|
var accepts = ['application/json; charset=UTF-8'];
|
|
81
81
|
var returnType = 'Blob';
|
|
82
|
-
|
|
83
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
84
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
85
|
-
return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
86
|
-
'path': '/tasks/{task_gid}/time_tracking_entries',
|
|
87
|
-
'httpMethod': 'POST',
|
|
88
|
-
'pathParams': pathParams,
|
|
89
|
-
'queryParams': queryParams,
|
|
90
|
-
'headerParams': headerParams,
|
|
91
|
-
'formParams': formParams,
|
|
92
|
-
'bodyParam': postBody,
|
|
93
|
-
'authNames': authNames,
|
|
94
|
-
'contentTypes': contentTypes,
|
|
95
|
-
'accepts': accepts,
|
|
96
|
-
'returnType': returnType
|
|
97
|
-
});
|
|
98
|
-
} else {
|
|
99
|
-
return this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
100
|
-
}
|
|
82
|
+
return this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
101
83
|
}
|
|
102
84
|
|
|
103
85
|
/**
|
|
@@ -112,14 +94,9 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
112
94
|
}, {
|
|
113
95
|
key: "createTimeTrackingEntry",
|
|
114
96
|
value: function createTimeTrackingEntry(body, task_gid, opts) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} else {
|
|
119
|
-
return this.createTimeTrackingEntryWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
|
|
120
|
-
return response_and_data.data;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
97
|
+
return this.createTimeTrackingEntryWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
|
|
98
|
+
return response_and_data.data;
|
|
99
|
+
});
|
|
123
100
|
}
|
|
124
101
|
|
|
125
102
|
/**
|
|
@@ -146,25 +123,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
146
123
|
var contentTypes = [];
|
|
147
124
|
var accepts = ['application/json; charset=UTF-8'];
|
|
148
125
|
var returnType = 'Blob';
|
|
149
|
-
|
|
150
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
151
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
152
|
-
return Collection.fromApiClient(this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
153
|
-
'path': '/time_tracking_entries/{time_tracking_entry_gid}',
|
|
154
|
-
'httpMethod': 'DELETE',
|
|
155
|
-
'pathParams': pathParams,
|
|
156
|
-
'queryParams': queryParams,
|
|
157
|
-
'headerParams': headerParams,
|
|
158
|
-
'formParams': formParams,
|
|
159
|
-
'bodyParam': postBody,
|
|
160
|
-
'authNames': authNames,
|
|
161
|
-
'contentTypes': contentTypes,
|
|
162
|
-
'accepts': accepts,
|
|
163
|
-
'returnType': returnType
|
|
164
|
-
});
|
|
165
|
-
} else {
|
|
166
|
-
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
167
|
-
}
|
|
126
|
+
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
168
127
|
}
|
|
169
128
|
|
|
170
129
|
/**
|
|
@@ -176,14 +135,9 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
176
135
|
}, {
|
|
177
136
|
key: "deleteTimeTrackingEntry",
|
|
178
137
|
value: function deleteTimeTrackingEntry(time_tracking_entry_gid) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
} else {
|
|
183
|
-
return this.deleteTimeTrackingEntryWithHttpInfo(time_tracking_entry_gid).then(function (response_and_data) {
|
|
184
|
-
return response_and_data.data;
|
|
185
|
-
});
|
|
186
|
-
}
|
|
138
|
+
return this.deleteTimeTrackingEntryWithHttpInfo(time_tracking_entry_gid).then(function (response_and_data) {
|
|
139
|
+
return response_and_data.data;
|
|
140
|
+
});
|
|
187
141
|
}
|
|
188
142
|
|
|
189
143
|
/**
|
|
@@ -217,9 +171,8 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
217
171
|
var contentTypes = [];
|
|
218
172
|
var accepts = ['application/json; charset=UTF-8'];
|
|
219
173
|
var returnType = 'Blob';
|
|
220
|
-
|
|
221
174
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
222
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
175
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
223
176
|
return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
224
177
|
'path': '/tasks/{task_gid}/time_tracking_entries',
|
|
225
178
|
'httpMethod': 'GET',
|
|
@@ -233,9 +186,8 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
233
186
|
'accepts': accepts,
|
|
234
187
|
'returnType': returnType
|
|
235
188
|
});
|
|
236
|
-
} else {
|
|
237
|
-
return this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
238
189
|
}
|
|
190
|
+
return this.apiClient.callApi('/tasks/{task_gid}/time_tracking_entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
239
191
|
}
|
|
240
192
|
|
|
241
193
|
/**
|
|
@@ -252,13 +204,12 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
252
204
|
key: "getTimeTrackingEntriesForTask",
|
|
253
205
|
value: function getTimeTrackingEntriesForTask(task_gid, opts) {
|
|
254
206
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
255
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
207
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
256
208
|
return this.getTimeTrackingEntriesForTaskWithHttpInfo(task_gid, opts);
|
|
257
|
-
} else {
|
|
258
|
-
return this.getTimeTrackingEntriesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
|
|
259
|
-
return response_and_data.data;
|
|
260
|
-
});
|
|
261
209
|
}
|
|
210
|
+
return this.getTimeTrackingEntriesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
|
|
211
|
+
return response_and_data.data;
|
|
212
|
+
});
|
|
262
213
|
}
|
|
263
214
|
|
|
264
215
|
/**
|
|
@@ -290,25 +241,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
290
241
|
var contentTypes = [];
|
|
291
242
|
var accepts = ['application/json; charset=UTF-8'];
|
|
292
243
|
var returnType = 'Blob';
|
|
293
|
-
|
|
294
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
295
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
296
|
-
return Collection.fromApiClient(this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
297
|
-
'path': '/time_tracking_entries/{time_tracking_entry_gid}',
|
|
298
|
-
'httpMethod': 'GET',
|
|
299
|
-
'pathParams': pathParams,
|
|
300
|
-
'queryParams': queryParams,
|
|
301
|
-
'headerParams': headerParams,
|
|
302
|
-
'formParams': formParams,
|
|
303
|
-
'bodyParam': postBody,
|
|
304
|
-
'authNames': authNames,
|
|
305
|
-
'contentTypes': contentTypes,
|
|
306
|
-
'accepts': accepts,
|
|
307
|
-
'returnType': returnType
|
|
308
|
-
});
|
|
309
|
-
} else {
|
|
310
|
-
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
311
|
-
}
|
|
244
|
+
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
312
245
|
}
|
|
313
246
|
|
|
314
247
|
/**
|
|
@@ -322,14 +255,9 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
322
255
|
}, {
|
|
323
256
|
key: "getTimeTrackingEntry",
|
|
324
257
|
value: function getTimeTrackingEntry(time_tracking_entry_gid, opts) {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
} else {
|
|
329
|
-
return this.getTimeTrackingEntryWithHttpInfo(time_tracking_entry_gid, opts).then(function (response_and_data) {
|
|
330
|
-
return response_and_data.data;
|
|
331
|
-
});
|
|
332
|
-
}
|
|
258
|
+
return this.getTimeTrackingEntryWithHttpInfo(time_tracking_entry_gid, opts).then(function (response_and_data) {
|
|
259
|
+
return response_and_data.data;
|
|
260
|
+
});
|
|
333
261
|
}
|
|
334
262
|
|
|
335
263
|
/**
|
|
@@ -366,25 +294,7 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
366
294
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
367
295
|
var accepts = ['application/json; charset=UTF-8'];
|
|
368
296
|
var returnType = 'Blob';
|
|
369
|
-
|
|
370
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
371
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
372
|
-
return Collection.fromApiClient(this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
373
|
-
'path': '/time_tracking_entries/{time_tracking_entry_gid}',
|
|
374
|
-
'httpMethod': 'PUT',
|
|
375
|
-
'pathParams': pathParams,
|
|
376
|
-
'queryParams': queryParams,
|
|
377
|
-
'headerParams': headerParams,
|
|
378
|
-
'formParams': formParams,
|
|
379
|
-
'bodyParam': postBody,
|
|
380
|
-
'authNames': authNames,
|
|
381
|
-
'contentTypes': contentTypes,
|
|
382
|
-
'accepts': accepts,
|
|
383
|
-
'returnType': returnType
|
|
384
|
-
});
|
|
385
|
-
} else {
|
|
386
|
-
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
387
|
-
}
|
|
297
|
+
return this.apiClient.callApi('/time_tracking_entries/{time_tracking_entry_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
388
298
|
}
|
|
389
299
|
|
|
390
300
|
/**
|
|
@@ -399,15 +309,9 @@ var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/funct
|
|
|
399
309
|
}, {
|
|
400
310
|
key: "updateTimeTrackingEntry",
|
|
401
311
|
value: function updateTimeTrackingEntry(body, time_tracking_entry_gid, opts) {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} else {
|
|
406
|
-
return this.updateTimeTrackingEntryWithHttpInfo(body, time_tracking_entry_gid, opts).then(function (response_and_data) {
|
|
407
|
-
return response_and_data.data;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
312
|
+
return this.updateTimeTrackingEntryWithHttpInfo(body, time_tracking_entry_gid, opts).then(function (response_and_data) {
|
|
313
|
+
return response_and_data.data;
|
|
314
|
+
});
|
|
410
315
|
}
|
|
411
316
|
}]);
|
|
412
|
-
return TimeTrackingEntriesApi;
|
|
413
317
|
}();
|
package/dist/api/TypeaheadApi.js
CHANGED
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Typeahead service.
|
|
31
31
|
* @module api/TypeaheadApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -49,7 +49,7 @@ var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
|
49
49
|
* Get objects via typeahead
|
|
50
50
|
* Retrieves objects in the workspace based via an auto-completion/typeahead search algorithm. This feature is meant to provide results quickly, so do not rely on this API to provide extremely accurate search results. The result set is limited to a single page of results with a maximum size, so you won’t be able to fetch large numbers of results. The typeahead search API provides search for objects from a single workspace. This endpoint should be used to query for objects when creating an auto-completion/typeahead search feature. This API is meant to provide results quickly and should not be relied upon for accurate or exhaustive search results. The results sets are limited in size and cannot be paginated. Queries return a compact representation of each object which is typically the gid and name fields. Interested in a specific set of fields or all of the fields?! Of course you are. Use field selectors to manipulate what data is included in a response. Resources with type `user` are returned in order of most contacted to least contacted. This is determined by task assignments, adding the user to projects, and adding the user as a follower to tasks, messages, etc. Resources with type `project` are returned in order of recency. This is determined when the user visits the project, is added to the project, and completes tasks in the project. Resources with type `task` are returned with priority placed on tasks the user is following, but no guarantee on the order of those tasks. Resources with type `project_template` are returned with priority placed on favorited project templates. Leaving the `query` string empty or omitted will give you results, still following the resource ordering above. This could be used to list users or projects that are relevant for the requesting user's api token.
|
|
51
51
|
* @param {String} workspace_gid Globally unique identifier for the workspace or organization.
|
|
52
|
-
* @param {module:model/String} resource_type The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `project`, `project_template`, `portfolio`, `tag`, `task`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
|
|
52
|
+
* @param {module:model/String} resource_type The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `goal`, `project`, `project_template`, `portfolio`, `tag`, `task`, `team`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
|
|
53
53
|
* @param {Object} opts Optional parameters
|
|
54
54
|
* @param {module:model/String} opts.type *Deprecated: new integrations should prefer the resource_type field.* (default to <.>)
|
|
55
55
|
* @param {String} opts.query The string that will be used to search for relevant objects. If an empty string is passed in, the API will return results.
|
|
@@ -57,7 +57,7 @@ var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
|
57
57
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact 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.
|
|
58
58
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
59
59
|
*/
|
|
60
|
-
_createClass(TypeaheadApi, [{
|
|
60
|
+
return _createClass(TypeaheadApi, [{
|
|
61
61
|
key: "typeaheadForWorkspaceWithHttpInfo",
|
|
62
62
|
value: function typeaheadForWorkspaceWithHttpInfo(workspace_gid, resource_type, opts) {
|
|
63
63
|
opts = opts || {};
|
|
@@ -83,9 +83,8 @@ var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
|
83
83
|
var contentTypes = [];
|
|
84
84
|
var accepts = ['application/json; charset=UTF-8'];
|
|
85
85
|
var returnType = 'Blob';
|
|
86
|
-
|
|
87
86
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
88
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
87
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
89
88
|
return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/typeahead', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
90
89
|
'path': '/workspaces/{workspace_gid}/typeahead',
|
|
91
90
|
'httpMethod': 'GET',
|
|
@@ -99,16 +98,15 @@ var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
|
99
98
|
'accepts': accepts,
|
|
100
99
|
'returnType': returnType
|
|
101
100
|
});
|
|
102
|
-
} else {
|
|
103
|
-
return this.apiClient.callApi('/workspaces/{workspace_gid}/typeahead', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
104
101
|
}
|
|
102
|
+
return this.apiClient.callApi('/workspaces/{workspace_gid}/typeahead', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
105
103
|
}
|
|
106
104
|
|
|
107
105
|
/**
|
|
108
106
|
* Get objects via typeahead
|
|
109
107
|
* Retrieves objects in the workspace based via an auto-completion/typeahead search algorithm. This feature is meant to provide results quickly, so do not rely on this API to provide extremely accurate search results. The result set is limited to a single page of results with a maximum size, so you won’t be able to fetch large numbers of results. The typeahead search API provides search for objects from a single workspace. This endpoint should be used to query for objects when creating an auto-completion/typeahead search feature. This API is meant to provide results quickly and should not be relied upon for accurate or exhaustive search results. The results sets are limited in size and cannot be paginated. Queries return a compact representation of each object which is typically the gid and name fields. Interested in a specific set of fields or all of the fields?! Of course you are. Use field selectors to manipulate what data is included in a response. Resources with type `user` are returned in order of most contacted to least contacted. This is determined by task assignments, adding the user to projects, and adding the user as a follower to tasks, messages, etc. Resources with type `project` are returned in order of recency. This is determined when the user visits the project, is added to the project, and completes tasks in the project. Resources with type `task` are returned with priority placed on tasks the user is following, but no guarantee on the order of those tasks. Resources with type `project_template` are returned with priority placed on favorited project templates. Leaving the `query` string empty or omitted will give you results, still following the resource ordering above. This could be used to list users or projects that are relevant for the requesting user's api token.
|
|
110
108
|
* @param {<&vendorExtensions.x-jsdoc-type>} workspace_gid Globally unique identifier for the workspace or organization.
|
|
111
|
-
* @param {<&vendorExtensions.x-jsdoc-type>} resource_type The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `project`, `project_template`, `portfolio`, `tag`, `task`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
|
|
109
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} resource_type The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `goal`, `project`, `project_template`, `portfolio`, `tag`, `task`, `team`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
|
|
112
110
|
* @param {Object} opts Optional parameters
|
|
113
111
|
* @param {module:model/String} opts.type *Deprecated: new integrations should prefer the resource_type field.* (default to <.>)
|
|
114
112
|
* @param {String} opts.query The string that will be used to search for relevant objects. If an empty string is passed in, the API will return results.
|
|
@@ -120,14 +118,12 @@ var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
|
|
|
120
118
|
key: "typeaheadForWorkspace",
|
|
121
119
|
value: function typeaheadForWorkspace(workspace_gid, resource_type, opts) {
|
|
122
120
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
123
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
121
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
124
122
|
return this.typeaheadForWorkspaceWithHttpInfo(workspace_gid, resource_type, opts);
|
|
125
|
-
} else {
|
|
126
|
-
return this.typeaheadForWorkspaceWithHttpInfo(workspace_gid, resource_type, opts).then(function (response_and_data) {
|
|
127
|
-
return response_and_data.data;
|
|
128
|
-
});
|
|
129
123
|
}
|
|
124
|
+
return this.typeaheadForWorkspaceWithHttpInfo(workspace_gid, resource_type, opts).then(function (response_and_data) {
|
|
125
|
+
return response_and_data.data;
|
|
126
|
+
});
|
|
130
127
|
}
|
|
131
128
|
}]);
|
|
132
|
-
return TypeaheadApi;
|
|
133
129
|
}();
|
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* UserTaskLists service.
|
|
31
31
|
* @module api/UserTaskListsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,7 +53,7 @@ var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
|
53
53
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact 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
54
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
55
55
|
*/
|
|
56
|
-
_createClass(UserTaskListsApi, [{
|
|
56
|
+
return _createClass(UserTaskListsApi, [{
|
|
57
57
|
key: "getUserTaskListWithHttpInfo",
|
|
58
58
|
value: function getUserTaskListWithHttpInfo(user_task_list_gid, opts) {
|
|
59
59
|
opts = opts || {};
|
|
@@ -74,25 +74,7 @@ var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
|
74
74
|
var contentTypes = [];
|
|
75
75
|
var accepts = ['application/json; charset=UTF-8'];
|
|
76
76
|
var returnType = 'Blob';
|
|
77
|
-
|
|
78
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
79
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
80
|
-
return Collection.fromApiClient(this.apiClient.callApi('/user_task_lists/{user_task_list_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
81
|
-
'path': '/user_task_lists/{user_task_list_gid}',
|
|
82
|
-
'httpMethod': 'GET',
|
|
83
|
-
'pathParams': pathParams,
|
|
84
|
-
'queryParams': queryParams,
|
|
85
|
-
'headerParams': headerParams,
|
|
86
|
-
'formParams': formParams,
|
|
87
|
-
'bodyParam': postBody,
|
|
88
|
-
'authNames': authNames,
|
|
89
|
-
'contentTypes': contentTypes,
|
|
90
|
-
'accepts': accepts,
|
|
91
|
-
'returnType': returnType
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
return this.apiClient.callApi('/user_task_lists/{user_task_list_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
-
}
|
|
77
|
+
return this.apiClient.callApi('/user_task_lists/{user_task_list_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
78
|
}
|
|
97
79
|
|
|
98
80
|
/**
|
|
@@ -106,14 +88,9 @@ var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
|
106
88
|
}, {
|
|
107
89
|
key: "getUserTaskList",
|
|
108
90
|
value: function getUserTaskList(user_task_list_gid, opts) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} else {
|
|
113
|
-
return this.getUserTaskListWithHttpInfo(user_task_list_gid, opts).then(function (response_and_data) {
|
|
114
|
-
return response_and_data.data;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
91
|
+
return this.getUserTaskListWithHttpInfo(user_task_list_gid, opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
117
94
|
}
|
|
118
95
|
|
|
119
96
|
/**
|
|
@@ -151,25 +128,7 @@ var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
|
151
128
|
var contentTypes = [];
|
|
152
129
|
var accepts = ['application/json; charset=UTF-8'];
|
|
153
130
|
var returnType = 'Blob';
|
|
154
|
-
|
|
155
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
156
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
157
|
-
return Collection.fromApiClient(this.apiClient.callApi('/users/{user_gid}/user_task_list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
158
|
-
'path': '/users/{user_gid}/user_task_list',
|
|
159
|
-
'httpMethod': 'GET',
|
|
160
|
-
'pathParams': pathParams,
|
|
161
|
-
'queryParams': queryParams,
|
|
162
|
-
'headerParams': headerParams,
|
|
163
|
-
'formParams': formParams,
|
|
164
|
-
'bodyParam': postBody,
|
|
165
|
-
'authNames': authNames,
|
|
166
|
-
'contentTypes': contentTypes,
|
|
167
|
-
'accepts': accepts,
|
|
168
|
-
'returnType': returnType
|
|
169
|
-
});
|
|
170
|
-
} else {
|
|
171
|
-
return this.apiClient.callApi('/users/{user_gid}/user_task_list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
172
|
-
}
|
|
131
|
+
return this.apiClient.callApi('/users/{user_gid}/user_task_list', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
173
132
|
}
|
|
174
133
|
|
|
175
134
|
/**
|
|
@@ -184,15 +143,9 @@ var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
|
|
|
184
143
|
}, {
|
|
185
144
|
key: "getUserTaskListForUser",
|
|
186
145
|
value: function getUserTaskListForUser(user_gid, workspace, opts) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
} else {
|
|
191
|
-
return this.getUserTaskListForUserWithHttpInfo(user_gid, workspace, opts).then(function (response_and_data) {
|
|
192
|
-
return response_and_data.data;
|
|
193
|
-
});
|
|
194
|
-
}
|
|
146
|
+
return this.getUserTaskListForUserWithHttpInfo(user_gid, workspace, opts).then(function (response_and_data) {
|
|
147
|
+
return response_and_data.data;
|
|
148
|
+
});
|
|
195
149
|
}
|
|
196
150
|
}]);
|
|
197
|
-
return UserTaskListsApi;
|
|
198
151
|
}();
|