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
  * ProjectTemplates service.
20
20
  * @module api/ProjectTemplatesApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class ProjectTemplatesApi {
24
24
 
@@ -67,36 +67,11 @@ export class ProjectTemplatesApi {
67
67
  let accepts = ['application/json; charset=UTF-8'];
68
68
  let returnType = 'Blob';
69
69
 
70
- // Check if RETURN_COLLECTION is set and return a collection object if it is
71
- if (this.apiClient.RETURN_COLLECTION && false) {
72
- return Collection.fromApiClient(
73
- this.apiClient.callApi(
74
- '/project_templates/{project_template_gid}', 'DELETE',
75
- pathParams, queryParams, headerParams, formParams, postBody,
76
- authNames, contentTypes, accepts, returnType
77
- ),
78
- this.apiClient,
79
- {
80
- 'path': '/project_templates/{project_template_gid}',
81
- 'httpMethod': 'DELETE',
82
- 'pathParams': pathParams,
83
- 'queryParams': queryParams,
84
- 'headerParams': headerParams,
85
- 'formParams': formParams,
86
- 'bodyParam': postBody,
87
- 'authNames': authNames,
88
- 'contentTypes': contentTypes,
89
- 'accepts': accepts,
90
- 'returnType': returnType
91
- }
92
- )
93
- } else {
94
- return this.apiClient.callApi(
95
- '/project_templates/{project_template_gid}', 'DELETE',
96
- pathParams, queryParams, headerParams, formParams, postBody,
97
- authNames, contentTypes, accepts, returnType
98
- );
99
- }
70
+ return this.apiClient.callApi(
71
+ '/project_templates/{project_template_gid}', 'DELETE',
72
+ pathParams, queryParams, headerParams, formParams, postBody,
73
+ authNames, contentTypes, accepts, returnType
74
+ );
100
75
  }
101
76
 
102
77
  /**
@@ -107,15 +82,10 @@ export class ProjectTemplatesApi {
107
82
  */
108
83
  deleteProjectTemplate(project_template_gid) {
109
84
 
110
- // Check if RETURN_COLLECTION is set and return a collection object if it is
111
- if (this.apiClient.RETURN_COLLECTION && false) {
112
- return this.deleteProjectTemplateWithHttpInfo(project_template_gid)
113
- } else {
114
- return this.deleteProjectTemplateWithHttpInfo(project_template_gid)
115
- .then(function(response_and_data) {
116
- return response_and_data.data;
117
- });
118
- }
85
+ return this.deleteProjectTemplateWithHttpInfo(project_template_gid)
86
+ .then(function(response_and_data) {
87
+ return response_and_data.data;
88
+ });
119
89
  }
120
90
 
121
91
 
@@ -154,36 +124,11 @@ export class ProjectTemplatesApi {
154
124
  let accepts = ['application/json; charset=UTF-8'];
155
125
  let returnType = 'Blob';
156
126
 
157
- // Check if RETURN_COLLECTION is set and return a collection object if it is
158
- if (this.apiClient.RETURN_COLLECTION && false) {
159
- return Collection.fromApiClient(
160
- this.apiClient.callApi(
161
- '/project_templates/{project_template_gid}', 'GET',
162
- pathParams, queryParams, headerParams, formParams, postBody,
163
- authNames, contentTypes, accepts, returnType
164
- ),
165
- this.apiClient,
166
- {
167
- 'path': '/project_templates/{project_template_gid}',
168
- 'httpMethod': 'GET',
169
- 'pathParams': pathParams,
170
- 'queryParams': queryParams,
171
- 'headerParams': headerParams,
172
- 'formParams': formParams,
173
- 'bodyParam': postBody,
174
- 'authNames': authNames,
175
- 'contentTypes': contentTypes,
176
- 'accepts': accepts,
177
- 'returnType': returnType
178
- }
179
- )
180
- } else {
181
- return this.apiClient.callApi(
182
- '/project_templates/{project_template_gid}', 'GET',
183
- pathParams, queryParams, headerParams, formParams, postBody,
184
- authNames, contentTypes, accepts, returnType
185
- );
186
- }
127
+ return this.apiClient.callApi(
128
+ '/project_templates/{project_template_gid}', 'GET',
129
+ pathParams, queryParams, headerParams, formParams, postBody,
130
+ authNames, contentTypes, accepts, returnType
131
+ );
187
132
  }
188
133
 
189
134
  /**
@@ -196,15 +141,10 @@ export class ProjectTemplatesApi {
196
141
  */
197
142
  getProjectTemplate(project_template_gid, opts) {
198
143
 
199
- // Check if RETURN_COLLECTION is set and return a collection object if it is
200
- if (this.apiClient.RETURN_COLLECTION && false) {
201
- return this.getProjectTemplateWithHttpInfo(project_template_gid, opts)
202
- } else {
203
- return this.getProjectTemplateWithHttpInfo(project_template_gid, opts)
204
- .then(function(response_and_data) {
205
- return response_and_data.data;
206
- });
207
- }
144
+ return this.getProjectTemplateWithHttpInfo(project_template_gid, opts)
145
+ .then(function(response_and_data) {
146
+ return response_and_data.data;
147
+ });
208
148
  }
209
149
 
210
150
 
@@ -241,9 +181,8 @@ export class ProjectTemplatesApi {
241
181
  let contentTypes = [];
242
182
  let accepts = ['application/json; charset=UTF-8'];
243
183
  let returnType = 'Blob';
244
-
245
184
  // Check if RETURN_COLLECTION is set and return a collection object if it is
246
- if (this.apiClient.RETURN_COLLECTION && true) {
185
+ if (this.apiClient.RETURN_COLLECTION) {
247
186
  return Collection.fromApiClient(
248
187
  this.apiClient.callApi(
249
188
  '/project_templates', 'GET',
@@ -265,13 +204,13 @@ export class ProjectTemplatesApi {
265
204
  'returnType': returnType
266
205
  }
267
206
  )
268
- } else {
269
- return this.apiClient.callApi(
270
- '/project_templates', 'GET',
271
- pathParams, queryParams, headerParams, formParams, postBody,
272
- authNames, contentTypes, accepts, returnType
273
- );
274
207
  }
208
+
209
+ return this.apiClient.callApi(
210
+ '/project_templates', 'GET',
211
+ pathParams, queryParams, headerParams, formParams, postBody,
212
+ authNames, contentTypes, accepts, returnType
213
+ );
275
214
  }
276
215
 
277
216
  /**
@@ -286,16 +225,15 @@ export class ProjectTemplatesApi {
286
225
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectTemplateResponseArray}
287
226
  */
288
227
  getProjectTemplates(opts) {
289
-
290
228
  // Check if RETURN_COLLECTION is set and return a collection object if it is
291
- if (this.apiClient.RETURN_COLLECTION && true) {
292
- return this.getProjectTemplatesWithHttpInfo(opts)
293
- } else {
229
+ if (this.apiClient.RETURN_COLLECTION) {
294
230
  return this.getProjectTemplatesWithHttpInfo(opts)
295
- .then(function(response_and_data) {
296
- return response_and_data.data;
297
- });
298
231
  }
232
+
233
+ return this.getProjectTemplatesWithHttpInfo(opts)
234
+ .then(function(response_and_data) {
235
+ return response_and_data.data;
236
+ });
299
237
  }
300
238
 
301
239
 
@@ -335,9 +273,8 @@ export class ProjectTemplatesApi {
335
273
  let contentTypes = [];
336
274
  let accepts = ['application/json; charset=UTF-8'];
337
275
  let returnType = 'Blob';
338
-
339
276
  // Check if RETURN_COLLECTION is set and return a collection object if it is
340
- if (this.apiClient.RETURN_COLLECTION && true) {
277
+ if (this.apiClient.RETURN_COLLECTION) {
341
278
  return Collection.fromApiClient(
342
279
  this.apiClient.callApi(
343
280
  '/teams/{team_gid}/project_templates', 'GET',
@@ -359,13 +296,13 @@ export class ProjectTemplatesApi {
359
296
  'returnType': returnType
360
297
  }
361
298
  )
362
- } else {
363
- return this.apiClient.callApi(
364
- '/teams/{team_gid}/project_templates', 'GET',
365
- pathParams, queryParams, headerParams, formParams, postBody,
366
- authNames, contentTypes, accepts, returnType
367
- );
368
299
  }
300
+
301
+ return this.apiClient.callApi(
302
+ '/teams/{team_gid}/project_templates', 'GET',
303
+ pathParams, queryParams, headerParams, formParams, postBody,
304
+ authNames, contentTypes, accepts, returnType
305
+ );
369
306
  }
370
307
 
371
308
  /**
@@ -379,16 +316,15 @@ export class ProjectTemplatesApi {
379
316
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectTemplateResponseArray}
380
317
  */
381
318
  getProjectTemplatesForTeam(team_gid, opts) {
382
-
383
319
  // Check if RETURN_COLLECTION is set and return a collection object if it is
384
- if (this.apiClient.RETURN_COLLECTION && true) {
385
- return this.getProjectTemplatesForTeamWithHttpInfo(team_gid, opts)
386
- } else {
320
+ if (this.apiClient.RETURN_COLLECTION) {
387
321
  return this.getProjectTemplatesForTeamWithHttpInfo(team_gid, opts)
388
- .then(function(response_and_data) {
389
- return response_and_data.data;
390
- });
391
322
  }
323
+
324
+ return this.getProjectTemplatesForTeamWithHttpInfo(team_gid, opts)
325
+ .then(function(response_and_data) {
326
+ return response_and_data.data;
327
+ });
392
328
  }
393
329
 
394
330
 
@@ -428,36 +364,11 @@ export class ProjectTemplatesApi {
428
364
  let accepts = ['application/json; charset=UTF-8'];
429
365
  let returnType = 'Blob';
430
366
 
431
- // Check if RETURN_COLLECTION is set and return a collection object if it is
432
- if (this.apiClient.RETURN_COLLECTION && false) {
433
- return Collection.fromApiClient(
434
- this.apiClient.callApi(
435
- '/project_templates/{project_template_gid}/instantiateProject', 'POST',
436
- pathParams, queryParams, headerParams, formParams, postBody,
437
- authNames, contentTypes, accepts, returnType
438
- ),
439
- this.apiClient,
440
- {
441
- 'path': '/project_templates/{project_template_gid}/instantiateProject',
442
- 'httpMethod': 'POST',
443
- 'pathParams': pathParams,
444
- 'queryParams': queryParams,
445
- 'headerParams': headerParams,
446
- 'formParams': formParams,
447
- 'bodyParam': postBody,
448
- 'authNames': authNames,
449
- 'contentTypes': contentTypes,
450
- 'accepts': accepts,
451
- 'returnType': returnType
452
- }
453
- )
454
- } else {
455
- return this.apiClient.callApi(
456
- '/project_templates/{project_template_gid}/instantiateProject', 'POST',
457
- pathParams, queryParams, headerParams, formParams, postBody,
458
- authNames, contentTypes, accepts, returnType
459
- );
460
- }
367
+ return this.apiClient.callApi(
368
+ '/project_templates/{project_template_gid}/instantiateProject', 'POST',
369
+ pathParams, queryParams, headerParams, formParams, postBody,
370
+ authNames, contentTypes, accepts, returnType
371
+ );
461
372
  }
462
373
 
463
374
  /**
@@ -471,15 +382,10 @@ export class ProjectTemplatesApi {
471
382
  */
472
383
  instantiateProject(project_template_gid, opts) {
473
384
 
474
- // Check if RETURN_COLLECTION is set and return a collection object if it is
475
- if (this.apiClient.RETURN_COLLECTION && false) {
476
- return this.instantiateProjectWithHttpInfo(project_template_gid, opts)
477
- } else {
478
- return this.instantiateProjectWithHttpInfo(project_template_gid, opts)
479
- .then(function(response_and_data) {
480
- return response_and_data.data;
481
- });
482
- }
385
+ return this.instantiateProjectWithHttpInfo(project_template_gid, opts)
386
+ .then(function(response_and_data) {
387
+ return response_and_data.data;
388
+ });
483
389
  }
484
390
 
485
391
  }