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.
Files changed (82) hide show
  1. package/.github/workflows/publish.yaml +78 -38
  2. package/.swagger-codegen/VERSION +1 -1
  3. package/README.md +140 -29
  4. package/codegen/templates/README.mustache +129 -26
  5. package/codegen/templates/api.mustache +17 -15
  6. package/dist/ApiClient.js +6 -7
  7. package/dist/api/AllocationsApi.js +307 -0
  8. package/dist/api/AttachmentsApi.js +22 -95
  9. package/dist/api/AuditLogAPIApi.js +10 -14
  10. package/dist/api/BatchAPIApi.js +10 -14
  11. package/dist/api/CustomFieldSettingsApi.js +16 -23
  12. package/dist/api/CustomFieldsApi.js +38 -203
  13. package/dist/api/EventsApi.js +12 -16
  14. package/dist/api/GoalRelationshipsApi.js +26 -122
  15. package/dist/api/GoalsApi.js +48 -239
  16. package/dist/api/JobsApi.js +8 -32
  17. package/dist/api/MembershipsApi.js +73 -99
  18. package/dist/api/OrganizationExportsApi.js +12 -59
  19. package/dist/api/PortfolioMembershipsApi.js +20 -50
  20. package/dist/api/PortfoliosApi.js +56 -293
  21. package/dist/api/ProjectBriefsApi.js +20 -113
  22. package/dist/api/ProjectMembershipsApi.js +14 -41
  23. package/dist/api/ProjectStatusesApi.js +22 -95
  24. package/dist/api/ProjectTemplatesApi.js +28 -104
  25. package/dist/api/ProjectsApi.js +88 -446
  26. package/dist/api/RulesApi.js +8 -32
  27. package/dist/api/SectionsApi.js +34 -176
  28. package/dist/api/StatusUpdatesApi.js +22 -95
  29. package/dist/api/StoriesApi.js +26 -122
  30. package/dist/api/TagsApi.js +42 -167
  31. package/dist/api/TaskTemplatesApi.js +63 -72
  32. package/dist/api/TasksApi.js +173 -544
  33. package/dist/api/TeamMembershipsApi.js +26 -59
  34. package/dist/api/TeamsApi.js +36 -158
  35. package/dist/api/TimePeriodsApi.js +14 -41
  36. package/dist/api/TimeTrackingEntriesApi.js +26 -122
  37. package/dist/api/TypeaheadApi.js +12 -16
  38. package/dist/api/UserTaskListsApi.js +12 -59
  39. package/dist/api/UsersApi.js +32 -68
  40. package/dist/api/WebhooksApi.js +26 -122
  41. package/dist/api/WorkspaceMembershipsApi.js +20 -50
  42. package/dist/api/WorkspacesApi.js +26 -122
  43. package/dist/index.js +7 -0
  44. package/package.json +1 -1
  45. package/src/ApiClient.js +4 -4
  46. package/src/api/AllocationsApi.js +365 -0
  47. package/src/api/AttachmentsApi.js +42 -134
  48. package/src/api/AuditLogAPIApi.js +15 -17
  49. package/src/api/BatchAPIApi.js +15 -17
  50. package/src/api/CustomFieldSettingsApi.js +28 -32
  51. package/src/api/CustomFieldsApi.js +78 -290
  52. package/src/api/EventsApi.js +17 -19
  53. package/src/api/GoalRelationshipsApi.js +51 -173
  54. package/src/api/GoalsApi.js +100 -344
  55. package/src/api/JobsApi.js +11 -41
  56. package/src/api/MembershipsApi.js +105 -138
  57. package/src/api/OrganizationExportsApi.js +20 -80
  58. package/src/api/PortfolioMembershipsApi.js +37 -71
  59. package/src/api/PortfoliosApi.js +118 -422
  60. package/src/api/ProjectBriefsApi.js +38 -158
  61. package/src/api/ProjectMembershipsApi.js +24 -56
  62. package/src/api/ProjectStatusesApi.js +42 -134
  63. package/src/api/ProjectTemplatesApi.js +55 -149
  64. package/src/api/ProjectsApi.js +189 -647
  65. package/src/api/RulesApi.js +11 -41
  66. package/src/api/SectionsApi.js +69 -251
  67. package/src/api/StatusUpdatesApi.js +42 -134
  68. package/src/api/StoriesApi.js +51 -173
  69. package/src/api/TagsApi.js +86 -242
  70. package/src/api/TaskTemplatesApi.js +86 -95
  71. package/src/api/TasksApi.js +330 -799
  72. package/src/api/TeamMembershipsApi.js +50 -86
  73. package/src/api/TeamsApi.js +73 -227
  74. package/src/api/TimePeriodsApi.js +24 -56
  75. package/src/api/TimeTrackingEntriesApi.js +51 -173
  76. package/src/api/TypeaheadApi.js +17 -19
  77. package/src/api/UserTaskListsApi.js +20 -80
  78. package/src/api/UsersApi.js +63 -101
  79. package/src/api/WebhooksApi.js +51 -173
  80. package/src/api/WorkspaceMembershipsApi.js +37 -71
  81. package/src/api/WorkspacesApi.js +51 -173
  82. package/src/index.js +9 -2
@@ -7,7 +7,7 @@
7
7
  * NOTE: This class is auto generated by the swagger code generator program.
8
8
  * https://github.com/swagger-api/swagger-codegen.git
9
9
  *
10
- * Swagger Codegen version: 3.0.52
10
+ * Swagger Codegen version: 3.0.54
11
11
  *
12
12
  * Do not edit the class manually.
13
13
  *
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * GoalRelationships service.
20
20
  * @module api/GoalRelationshipsApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class GoalRelationshipsApi {
24
24
 
@@ -76,36 +76,11 @@ export class GoalRelationshipsApi {
76
76
  let accepts = ['application/json; charset=UTF-8'];
77
77
  let returnType = 'Blob';
78
78
 
79
- // Check if RETURN_COLLECTION is set and return a collection object if it is
80
- if (this.apiClient.RETURN_COLLECTION && false) {
81
- return Collection.fromApiClient(
82
- this.apiClient.callApi(
83
- '/goals/{goal_gid}/addSupportingRelationship', 'POST',
84
- pathParams, queryParams, headerParams, formParams, postBody,
85
- authNames, contentTypes, accepts, returnType
86
- ),
87
- this.apiClient,
88
- {
89
- 'path': '/goals/{goal_gid}/addSupportingRelationship',
90
- 'httpMethod': 'POST',
91
- 'pathParams': pathParams,
92
- 'queryParams': queryParams,
93
- 'headerParams': headerParams,
94
- 'formParams': formParams,
95
- 'bodyParam': postBody,
96
- 'authNames': authNames,
97
- 'contentTypes': contentTypes,
98
- 'accepts': accepts,
99
- 'returnType': returnType
100
- }
101
- )
102
- } else {
103
- return this.apiClient.callApi(
104
- '/goals/{goal_gid}/addSupportingRelationship', 'POST',
105
- pathParams, queryParams, headerParams, formParams, postBody,
106
- authNames, contentTypes, accepts, returnType
107
- );
108
- }
79
+ return this.apiClient.callApi(
80
+ '/goals/{goal_gid}/addSupportingRelationship', 'POST',
81
+ pathParams, queryParams, headerParams, formParams, postBody,
82
+ authNames, contentTypes, accepts, returnType
83
+ );
109
84
  }
110
85
 
111
86
  /**
@@ -119,15 +94,10 @@ export class GoalRelationshipsApi {
119
94
  */
120
95
  addSupportingRelationship(body, goal_gid, opts) {
121
96
 
122
- // Check if RETURN_COLLECTION is set and return a collection object if it is
123
- if (this.apiClient.RETURN_COLLECTION && false) {
124
- return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts)
125
- } else {
126
- return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts)
127
- .then(function(response_and_data) {
128
- return response_and_data.data;
129
- });
130
- }
97
+ return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts)
98
+ .then(function(response_and_data) {
99
+ return response_and_data.data;
100
+ });
131
101
  }
132
102
 
133
103
 
@@ -166,36 +136,11 @@ export class GoalRelationshipsApi {
166
136
  let accepts = ['application/json; charset=UTF-8'];
167
137
  let returnType = 'Blob';
168
138
 
169
- // Check if RETURN_COLLECTION is set and return a collection object if it is
170
- if (this.apiClient.RETURN_COLLECTION && false) {
171
- return Collection.fromApiClient(
172
- this.apiClient.callApi(
173
- '/goal_relationships/{goal_relationship_gid}', 'GET',
174
- pathParams, queryParams, headerParams, formParams, postBody,
175
- authNames, contentTypes, accepts, returnType
176
- ),
177
- this.apiClient,
178
- {
179
- 'path': '/goal_relationships/{goal_relationship_gid}',
180
- 'httpMethod': 'GET',
181
- 'pathParams': pathParams,
182
- 'queryParams': queryParams,
183
- 'headerParams': headerParams,
184
- 'formParams': formParams,
185
- 'bodyParam': postBody,
186
- 'authNames': authNames,
187
- 'contentTypes': contentTypes,
188
- 'accepts': accepts,
189
- 'returnType': returnType
190
- }
191
- )
192
- } else {
193
- return this.apiClient.callApi(
194
- '/goal_relationships/{goal_relationship_gid}', 'GET',
195
- pathParams, queryParams, headerParams, formParams, postBody,
196
- authNames, contentTypes, accepts, returnType
197
- );
198
- }
139
+ return this.apiClient.callApi(
140
+ '/goal_relationships/{goal_relationship_gid}', 'GET',
141
+ pathParams, queryParams, headerParams, formParams, postBody,
142
+ authNames, contentTypes, accepts, returnType
143
+ );
199
144
  }
200
145
 
201
146
  /**
@@ -208,15 +153,10 @@ export class GoalRelationshipsApi {
208
153
  */
209
154
  getGoalRelationship(goal_relationship_gid, opts) {
210
155
 
211
- // Check if RETURN_COLLECTION is set and return a collection object if it is
212
- if (this.apiClient.RETURN_COLLECTION && false) {
213
- return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts)
214
- } else {
215
- return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts)
216
- .then(function(response_and_data) {
217
- return response_and_data.data;
218
- });
219
- }
156
+ return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts)
157
+ .then(function(response_and_data) {
158
+ return response_and_data.data;
159
+ });
220
160
  }
221
161
 
222
162
 
@@ -258,9 +198,8 @@ export class GoalRelationshipsApi {
258
198
  let contentTypes = [];
259
199
  let accepts = ['application/json; charset=UTF-8'];
260
200
  let returnType = 'Blob';
261
-
262
201
  // Check if RETURN_COLLECTION is set and return a collection object if it is
263
- if (this.apiClient.RETURN_COLLECTION && true) {
202
+ if (this.apiClient.RETURN_COLLECTION) {
264
203
  return Collection.fromApiClient(
265
204
  this.apiClient.callApi(
266
205
  '/goal_relationships', 'GET',
@@ -282,13 +221,13 @@ export class GoalRelationshipsApi {
282
221
  'returnType': returnType
283
222
  }
284
223
  )
285
- } else {
286
- return this.apiClient.callApi(
287
- '/goal_relationships', 'GET',
288
- pathParams, queryParams, headerParams, formParams, postBody,
289
- authNames, contentTypes, accepts, returnType
290
- );
291
224
  }
225
+
226
+ return this.apiClient.callApi(
227
+ '/goal_relationships', 'GET',
228
+ pathParams, queryParams, headerParams, formParams, postBody,
229
+ authNames, contentTypes, accepts, returnType
230
+ );
292
231
  }
293
232
 
294
233
  /**
@@ -303,16 +242,15 @@ export class GoalRelationshipsApi {
303
242
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GoalRelationshipResponseArray}
304
243
  */
305
244
  getGoalRelationships(supported_goal, opts) {
306
-
307
245
  // Check if RETURN_COLLECTION is set and return a collection object if it is
308
- if (this.apiClient.RETURN_COLLECTION && true) {
309
- return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts)
310
- } else {
246
+ if (this.apiClient.RETURN_COLLECTION) {
311
247
  return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts)
312
- .then(function(response_and_data) {
313
- return response_and_data.data;
314
- });
315
248
  }
249
+
250
+ return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts)
251
+ .then(function(response_and_data) {
252
+ return response_and_data.data;
253
+ });
316
254
  }
317
255
 
318
256
 
@@ -352,36 +290,11 @@ export class GoalRelationshipsApi {
352
290
  let accepts = ['application/json; charset=UTF-8'];
353
291
  let returnType = 'Blob';
354
292
 
355
- // Check if RETURN_COLLECTION is set and return a collection object if it is
356
- if (this.apiClient.RETURN_COLLECTION && false) {
357
- return Collection.fromApiClient(
358
- this.apiClient.callApi(
359
- '/goals/{goal_gid}/removeSupportingRelationship', 'POST',
360
- pathParams, queryParams, headerParams, formParams, postBody,
361
- authNames, contentTypes, accepts, returnType
362
- ),
363
- this.apiClient,
364
- {
365
- 'path': '/goals/{goal_gid}/removeSupportingRelationship',
366
- 'httpMethod': 'POST',
367
- 'pathParams': pathParams,
368
- 'queryParams': queryParams,
369
- 'headerParams': headerParams,
370
- 'formParams': formParams,
371
- 'bodyParam': postBody,
372
- 'authNames': authNames,
373
- 'contentTypes': contentTypes,
374
- 'accepts': accepts,
375
- 'returnType': returnType
376
- }
377
- )
378
- } else {
379
- return this.apiClient.callApi(
380
- '/goals/{goal_gid}/removeSupportingRelationship', 'POST',
381
- pathParams, queryParams, headerParams, formParams, postBody,
382
- authNames, contentTypes, accepts, returnType
383
- );
384
- }
293
+ return this.apiClient.callApi(
294
+ '/goals/{goal_gid}/removeSupportingRelationship', 'POST',
295
+ pathParams, queryParams, headerParams, formParams, postBody,
296
+ authNames, contentTypes, accepts, returnType
297
+ );
385
298
  }
386
299
 
387
300
  /**
@@ -393,15 +306,10 @@ export class GoalRelationshipsApi {
393
306
  */
394
307
  removeSupportingRelationship(body, goal_gid) {
395
308
 
396
- // Check if RETURN_COLLECTION is set and return a collection object if it is
397
- if (this.apiClient.RETURN_COLLECTION && false) {
398
- return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid)
399
- } else {
400
- return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid)
401
- .then(function(response_and_data) {
402
- return response_and_data.data;
403
- });
404
- }
309
+ return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid)
310
+ .then(function(response_and_data) {
311
+ return response_and_data.data;
312
+ });
405
313
  }
406
314
 
407
315
 
@@ -445,36 +353,11 @@ export class GoalRelationshipsApi {
445
353
  let accepts = ['application/json; charset=UTF-8'];
446
354
  let returnType = 'Blob';
447
355
 
448
- // Check if RETURN_COLLECTION is set and return a collection object if it is
449
- if (this.apiClient.RETURN_COLLECTION && false) {
450
- return Collection.fromApiClient(
451
- this.apiClient.callApi(
452
- '/goal_relationships/{goal_relationship_gid}', 'PUT',
453
- pathParams, queryParams, headerParams, formParams, postBody,
454
- authNames, contentTypes, accepts, returnType
455
- ),
456
- this.apiClient,
457
- {
458
- 'path': '/goal_relationships/{goal_relationship_gid}',
459
- 'httpMethod': 'PUT',
460
- 'pathParams': pathParams,
461
- 'queryParams': queryParams,
462
- 'headerParams': headerParams,
463
- 'formParams': formParams,
464
- 'bodyParam': postBody,
465
- 'authNames': authNames,
466
- 'contentTypes': contentTypes,
467
- 'accepts': accepts,
468
- 'returnType': returnType
469
- }
470
- )
471
- } else {
472
- return this.apiClient.callApi(
473
- '/goal_relationships/{goal_relationship_gid}', 'PUT',
474
- pathParams, queryParams, headerParams, formParams, postBody,
475
- authNames, contentTypes, accepts, returnType
476
- );
477
- }
356
+ return this.apiClient.callApi(
357
+ '/goal_relationships/{goal_relationship_gid}', 'PUT',
358
+ pathParams, queryParams, headerParams, formParams, postBody,
359
+ authNames, contentTypes, accepts, returnType
360
+ );
478
361
  }
479
362
 
480
363
  /**
@@ -488,15 +371,10 @@ export class GoalRelationshipsApi {
488
371
  */
489
372
  updateGoalRelationship(body, goal_relationship_gid, opts) {
490
373
 
491
- // Check if RETURN_COLLECTION is set and return a collection object if it is
492
- if (this.apiClient.RETURN_COLLECTION && false) {
493
- return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts)
494
- } else {
495
- return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts)
496
- .then(function(response_and_data) {
497
- return response_and_data.data;
498
- });
499
- }
374
+ return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts)
375
+ .then(function(response_and_data) {
376
+ return response_and_data.data;
377
+ });
500
378
  }
501
379
 
502
380
  }