asana 3.0.2 → 3.0.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/.github/workflows/publish.yaml +78 -38
- package/.swagger-codegen/VERSION +1 -1
- package/README.md +135 -29
- package/codegen/templates/README.mustache +129 -26
- package/codegen/templates/api.mustache +17 -15
- package/dist/ApiClient.js +6 -7
- 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/package.json +1 -1
- package/src/ApiClient.js +4 -4
- 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 +2 -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
|
* GoalRelationships service.
|
|
31
31
|
* @module api/GoalRelationshipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.3
|
|
33
33
|
*/
|
|
34
34
|
var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -54,7 +54,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
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(GoalRelationshipsApi, [{
|
|
57
|
+
return _createClass(GoalRelationshipsApi, [{
|
|
58
58
|
key: "addSupportingRelationshipWithHttpInfo",
|
|
59
59
|
value: function addSupportingRelationshipWithHttpInfo(body, goal_gid, opts) {
|
|
60
60
|
opts = opts || {};
|
|
@@ -79,25 +79,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
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('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
86
|
-
'path': '/goals/{goal_gid}/addSupportingRelationship',
|
|
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('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
100
|
-
}
|
|
82
|
+
return this.apiClient.callApi('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
101
83
|
}
|
|
102
84
|
|
|
103
85
|
/**
|
|
@@ -112,14 +94,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
112
94
|
}, {
|
|
113
95
|
key: "addSupportingRelationship",
|
|
114
96
|
value: function addSupportingRelationship(body, goal_gid, opts) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} else {
|
|
119
|
-
return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
|
|
120
|
-
return response_and_data.data;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
97
|
+
return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
|
|
98
|
+
return response_and_data.data;
|
|
99
|
+
});
|
|
123
100
|
}
|
|
124
101
|
|
|
125
102
|
/**
|
|
@@ -151,25 +128,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__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('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
158
|
-
'path': '/goal_relationships/{goal_relationship_gid}',
|
|
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('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
172
|
-
}
|
|
131
|
+
return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
173
132
|
}
|
|
174
133
|
|
|
175
134
|
/**
|
|
@@ -183,14 +142,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
183
142
|
}, {
|
|
184
143
|
key: "getGoalRelationship",
|
|
185
144
|
value: function getGoalRelationship(goal_relationship_gid, opts) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
} else {
|
|
190
|
-
return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts).then(function (response_and_data) {
|
|
191
|
-
return response_and_data.data;
|
|
192
|
-
});
|
|
193
|
-
}
|
|
145
|
+
return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts).then(function (response_and_data) {
|
|
146
|
+
return response_and_data.data;
|
|
147
|
+
});
|
|
194
148
|
}
|
|
195
149
|
|
|
196
150
|
/**
|
|
@@ -224,9 +178,8 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
224
178
|
var contentTypes = [];
|
|
225
179
|
var accepts = ['application/json; charset=UTF-8'];
|
|
226
180
|
var returnType = 'Blob';
|
|
227
|
-
|
|
228
181
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
229
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
182
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
230
183
|
return Collection.fromApiClient(this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
231
184
|
'path': '/goal_relationships',
|
|
232
185
|
'httpMethod': 'GET',
|
|
@@ -240,9 +193,8 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
240
193
|
'accepts': accepts,
|
|
241
194
|
'returnType': returnType
|
|
242
195
|
});
|
|
243
|
-
} else {
|
|
244
|
-
return this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
245
196
|
}
|
|
197
|
+
return this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
246
198
|
}
|
|
247
199
|
|
|
248
200
|
/**
|
|
@@ -260,13 +212,12 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
260
212
|
key: "getGoalRelationships",
|
|
261
213
|
value: function getGoalRelationships(supported_goal, opts) {
|
|
262
214
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
263
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
215
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
264
216
|
return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts);
|
|
265
|
-
} else {
|
|
266
|
-
return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts).then(function (response_and_data) {
|
|
267
|
-
return response_and_data.data;
|
|
268
|
-
});
|
|
269
217
|
}
|
|
218
|
+
return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts).then(function (response_and_data) {
|
|
219
|
+
return response_and_data.data;
|
|
220
|
+
});
|
|
270
221
|
}
|
|
271
222
|
|
|
272
223
|
/**
|
|
@@ -298,25 +249,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
298
249
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
299
250
|
var accepts = ['application/json; charset=UTF-8'];
|
|
300
251
|
var returnType = 'Blob';
|
|
301
|
-
|
|
302
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
303
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
304
|
-
return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
305
|
-
'path': '/goals/{goal_gid}/removeSupportingRelationship',
|
|
306
|
-
'httpMethod': 'POST',
|
|
307
|
-
'pathParams': pathParams,
|
|
308
|
-
'queryParams': queryParams,
|
|
309
|
-
'headerParams': headerParams,
|
|
310
|
-
'formParams': formParams,
|
|
311
|
-
'bodyParam': postBody,
|
|
312
|
-
'authNames': authNames,
|
|
313
|
-
'contentTypes': contentTypes,
|
|
314
|
-
'accepts': accepts,
|
|
315
|
-
'returnType': returnType
|
|
316
|
-
});
|
|
317
|
-
} else {
|
|
318
|
-
return this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
319
|
-
}
|
|
252
|
+
return this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
320
253
|
}
|
|
321
254
|
|
|
322
255
|
/**
|
|
@@ -329,14 +262,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
329
262
|
}, {
|
|
330
263
|
key: "removeSupportingRelationship",
|
|
331
264
|
value: function removeSupportingRelationship(body, goal_gid) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
} else {
|
|
336
|
-
return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid).then(function (response_and_data) {
|
|
337
|
-
return response_and_data.data;
|
|
338
|
-
});
|
|
339
|
-
}
|
|
265
|
+
return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid).then(function (response_and_data) {
|
|
266
|
+
return response_and_data.data;
|
|
267
|
+
});
|
|
340
268
|
}
|
|
341
269
|
|
|
342
270
|
/**
|
|
@@ -373,25 +301,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
373
301
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
374
302
|
var accepts = ['application/json; charset=UTF-8'];
|
|
375
303
|
var returnType = 'Blob';
|
|
376
|
-
|
|
377
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
378
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
379
|
-
return Collection.fromApiClient(this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
380
|
-
'path': '/goal_relationships/{goal_relationship_gid}',
|
|
381
|
-
'httpMethod': 'PUT',
|
|
382
|
-
'pathParams': pathParams,
|
|
383
|
-
'queryParams': queryParams,
|
|
384
|
-
'headerParams': headerParams,
|
|
385
|
-
'formParams': formParams,
|
|
386
|
-
'bodyParam': postBody,
|
|
387
|
-
'authNames': authNames,
|
|
388
|
-
'contentTypes': contentTypes,
|
|
389
|
-
'accepts': accepts,
|
|
390
|
-
'returnType': returnType
|
|
391
|
-
});
|
|
392
|
-
} else {
|
|
393
|
-
return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
394
|
-
}
|
|
304
|
+
return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
395
305
|
}
|
|
396
306
|
|
|
397
307
|
/**
|
|
@@ -406,15 +316,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
|
|
|
406
316
|
}, {
|
|
407
317
|
key: "updateGoalRelationship",
|
|
408
318
|
value: function updateGoalRelationship(body, goal_relationship_gid, opts) {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
} else {
|
|
413
|
-
return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts).then(function (response_and_data) {
|
|
414
|
-
return response_and_data.data;
|
|
415
|
-
});
|
|
416
|
-
}
|
|
319
|
+
return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts).then(function (response_and_data) {
|
|
320
|
+
return response_and_data.data;
|
|
321
|
+
});
|
|
417
322
|
}
|
|
418
323
|
}]);
|
|
419
|
-
return GoalRelationshipsApi;
|
|
420
324
|
}();
|