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.
Files changed (79) hide show
  1. package/.github/workflows/publish.yaml +78 -38
  2. package/.swagger-codegen/VERSION +1 -1
  3. package/README.md +135 -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/AttachmentsApi.js +22 -95
  8. package/dist/api/AuditLogAPIApi.js +10 -14
  9. package/dist/api/BatchAPIApi.js +10 -14
  10. package/dist/api/CustomFieldSettingsApi.js +16 -23
  11. package/dist/api/CustomFieldsApi.js +38 -203
  12. package/dist/api/EventsApi.js +12 -16
  13. package/dist/api/GoalRelationshipsApi.js +26 -122
  14. package/dist/api/GoalsApi.js +48 -239
  15. package/dist/api/JobsApi.js +8 -32
  16. package/dist/api/MembershipsApi.js +73 -99
  17. package/dist/api/OrganizationExportsApi.js +12 -59
  18. package/dist/api/PortfolioMembershipsApi.js +20 -50
  19. package/dist/api/PortfoliosApi.js +56 -293
  20. package/dist/api/ProjectBriefsApi.js +20 -113
  21. package/dist/api/ProjectMembershipsApi.js +14 -41
  22. package/dist/api/ProjectStatusesApi.js +22 -95
  23. package/dist/api/ProjectTemplatesApi.js +28 -104
  24. package/dist/api/ProjectsApi.js +88 -446
  25. package/dist/api/RulesApi.js +8 -32
  26. package/dist/api/SectionsApi.js +34 -176
  27. package/dist/api/StatusUpdatesApi.js +22 -95
  28. package/dist/api/StoriesApi.js +26 -122
  29. package/dist/api/TagsApi.js +42 -167
  30. package/dist/api/TaskTemplatesApi.js +63 -72
  31. package/dist/api/TasksApi.js +173 -544
  32. package/dist/api/TeamMembershipsApi.js +26 -59
  33. package/dist/api/TeamsApi.js +36 -158
  34. package/dist/api/TimePeriodsApi.js +14 -41
  35. package/dist/api/TimeTrackingEntriesApi.js +26 -122
  36. package/dist/api/TypeaheadApi.js +12 -16
  37. package/dist/api/UserTaskListsApi.js +12 -59
  38. package/dist/api/UsersApi.js +32 -68
  39. package/dist/api/WebhooksApi.js +26 -122
  40. package/dist/api/WorkspaceMembershipsApi.js +20 -50
  41. package/dist/api/WorkspacesApi.js +26 -122
  42. package/package.json +1 -1
  43. package/src/ApiClient.js +4 -4
  44. package/src/api/AttachmentsApi.js +42 -134
  45. package/src/api/AuditLogAPIApi.js +15 -17
  46. package/src/api/BatchAPIApi.js +15 -17
  47. package/src/api/CustomFieldSettingsApi.js +28 -32
  48. package/src/api/CustomFieldsApi.js +78 -290
  49. package/src/api/EventsApi.js +17 -19
  50. package/src/api/GoalRelationshipsApi.js +51 -173
  51. package/src/api/GoalsApi.js +100 -344
  52. package/src/api/JobsApi.js +11 -41
  53. package/src/api/MembershipsApi.js +105 -138
  54. package/src/api/OrganizationExportsApi.js +20 -80
  55. package/src/api/PortfolioMembershipsApi.js +37 -71
  56. package/src/api/PortfoliosApi.js +118 -422
  57. package/src/api/ProjectBriefsApi.js +38 -158
  58. package/src/api/ProjectMembershipsApi.js +24 -56
  59. package/src/api/ProjectStatusesApi.js +42 -134
  60. package/src/api/ProjectTemplatesApi.js +55 -149
  61. package/src/api/ProjectsApi.js +189 -647
  62. package/src/api/RulesApi.js +11 -41
  63. package/src/api/SectionsApi.js +69 -251
  64. package/src/api/StatusUpdatesApi.js +42 -134
  65. package/src/api/StoriesApi.js +51 -173
  66. package/src/api/TagsApi.js +86 -242
  67. package/src/api/TaskTemplatesApi.js +86 -95
  68. package/src/api/TasksApi.js +330 -799
  69. package/src/api/TeamMembershipsApi.js +50 -86
  70. package/src/api/TeamsApi.js +73 -227
  71. package/src/api/TimePeriodsApi.js +24 -56
  72. package/src/api/TimeTrackingEntriesApi.js +51 -173
  73. package/src/api/TypeaheadApi.js +17 -19
  74. package/src/api/UserTaskListsApi.js +20 -80
  75. package/src/api/UsersApi.js +63 -101
  76. package/src/api/WebhooksApi.js +51 -173
  77. package/src/api/WorkspaceMembershipsApi.js +37 -71
  78. package/src/api/WorkspacesApi.js +51 -173
  79. package/src/index.js +2 -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
  * BatchAPI service.
20
20
  * @module api/BatchAPIApi
21
- * @version 3.0.2
21
+ * @version 3.0.3
22
22
  */
23
23
  export class BatchAPIApi {
24
24
 
@@ -70,9 +70,8 @@ export class BatchAPIApi {
70
70
  let contentTypes = ['application/json; charset=UTF-8'];
71
71
  let accepts = ['application/json; charset=UTF-8'];
72
72
  let returnType = 'Blob';
73
-
74
73
  // Check if RETURN_COLLECTION is set and return a collection object if it is
75
- if (this.apiClient.RETURN_COLLECTION && true) {
74
+ if (this.apiClient.RETURN_COLLECTION) {
76
75
  return Collection.fromApiClient(
77
76
  this.apiClient.callApi(
78
77
  '/batch', 'POST',
@@ -94,13 +93,13 @@ export class BatchAPIApi {
94
93
  'returnType': returnType
95
94
  }
96
95
  )
97
- } else {
98
- return this.apiClient.callApi(
99
- '/batch', 'POST',
100
- pathParams, queryParams, headerParams, formParams, postBody,
101
- authNames, contentTypes, accepts, returnType
102
- );
103
96
  }
97
+
98
+ return this.apiClient.callApi(
99
+ '/batch', 'POST',
100
+ pathParams, queryParams, headerParams, formParams, postBody,
101
+ authNames, contentTypes, accepts, returnType
102
+ );
104
103
  }
105
104
 
106
105
  /**
@@ -112,16 +111,15 @@ export class BatchAPIApi {
112
111
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchResponseArray}
113
112
  */
114
113
  createBatchRequest(body, opts) {
115
-
116
114
  // Check if RETURN_COLLECTION is set and return a collection object if it is
117
- if (this.apiClient.RETURN_COLLECTION && true) {
115
+ if (this.apiClient.RETURN_COLLECTION) {
118
116
  return this.createBatchRequestWithHttpInfo(body, opts)
119
- } else {
120
- return this.createBatchRequestWithHttpInfo(body, opts)
121
- .then(function(response_and_data) {
122
- return response_and_data.data;
123
- });
124
117
  }
118
+
119
+ return this.createBatchRequestWithHttpInfo(body, opts)
120
+ .then(function(response_and_data) {
121
+ return response_and_data.data;
122
+ });
125
123
  }
126
124
 
127
125
  }
@@ -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
  * CustomFieldSettings service.
20
20
  * @module api/CustomFieldSettingsApi
21
- * @version 3.0.2
21
+ * @version 3.0.3
22
22
  */
23
23
  export class CustomFieldSettingsApi {
24
24
 
@@ -72,9 +72,8 @@ export class CustomFieldSettingsApi {
72
72
  let contentTypes = [];
73
73
  let accepts = ['application/json; charset=UTF-8'];
74
74
  let returnType = 'Blob';
75
-
76
75
  // Check if RETURN_COLLECTION is set and return a collection object if it is
77
- if (this.apiClient.RETURN_COLLECTION && true) {
76
+ if (this.apiClient.RETURN_COLLECTION) {
78
77
  return Collection.fromApiClient(
79
78
  this.apiClient.callApi(
80
79
  '/portfolios/{portfolio_gid}/custom_field_settings', 'GET',
@@ -96,13 +95,13 @@ export class CustomFieldSettingsApi {
96
95
  'returnType': returnType
97
96
  }
98
97
  )
99
- } else {
100
- return this.apiClient.callApi(
101
- '/portfolios/{portfolio_gid}/custom_field_settings', 'GET',
102
- pathParams, queryParams, headerParams, formParams, postBody,
103
- authNames, contentTypes, accepts, returnType
104
- );
105
98
  }
99
+
100
+ return this.apiClient.callApi(
101
+ '/portfolios/{portfolio_gid}/custom_field_settings', 'GET',
102
+ pathParams, queryParams, headerParams, formParams, postBody,
103
+ authNames, contentTypes, accepts, returnType
104
+ );
106
105
  }
107
106
 
108
107
  /**
@@ -116,16 +115,15 @@ export class CustomFieldSettingsApi {
116
115
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomFieldSettingResponseArray}
117
116
  */
118
117
  getCustomFieldSettingsForPortfolio(portfolio_gid, opts) {
119
-
120
118
  // Check if RETURN_COLLECTION is set and return a collection object if it is
121
- if (this.apiClient.RETURN_COLLECTION && true) {
119
+ if (this.apiClient.RETURN_COLLECTION) {
122
120
  return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts)
123
- } else {
124
- return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts)
125
- .then(function(response_and_data) {
126
- return response_and_data.data;
127
- });
128
121
  }
122
+
123
+ return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts)
124
+ .then(function(response_and_data) {
125
+ return response_and_data.data;
126
+ });
129
127
  }
130
128
 
131
129
 
@@ -165,9 +163,8 @@ export class CustomFieldSettingsApi {
165
163
  let contentTypes = [];
166
164
  let accepts = ['application/json; charset=UTF-8'];
167
165
  let returnType = 'Blob';
168
-
169
166
  // Check if RETURN_COLLECTION is set and return a collection object if it is
170
- if (this.apiClient.RETURN_COLLECTION && true) {
167
+ if (this.apiClient.RETURN_COLLECTION) {
171
168
  return Collection.fromApiClient(
172
169
  this.apiClient.callApi(
173
170
  '/projects/{project_gid}/custom_field_settings', 'GET',
@@ -189,13 +186,13 @@ export class CustomFieldSettingsApi {
189
186
  'returnType': returnType
190
187
  }
191
188
  )
192
- } else {
193
- return this.apiClient.callApi(
194
- '/projects/{project_gid}/custom_field_settings', 'GET',
195
- pathParams, queryParams, headerParams, formParams, postBody,
196
- authNames, contentTypes, accepts, returnType
197
- );
198
189
  }
190
+
191
+ return this.apiClient.callApi(
192
+ '/projects/{project_gid}/custom_field_settings', 'GET',
193
+ pathParams, queryParams, headerParams, formParams, postBody,
194
+ authNames, contentTypes, accepts, returnType
195
+ );
199
196
  }
200
197
 
201
198
  /**
@@ -209,16 +206,15 @@ export class CustomFieldSettingsApi {
209
206
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomFieldSettingResponseArray}
210
207
  */
211
208
  getCustomFieldSettingsForProject(project_gid, opts) {
212
-
213
209
  // Check if RETURN_COLLECTION is set and return a collection object if it is
214
- if (this.apiClient.RETURN_COLLECTION && true) {
210
+ if (this.apiClient.RETURN_COLLECTION) {
215
211
  return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts)
216
- } else {
217
- return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts)
218
- .then(function(response_and_data) {
219
- return response_and_data.data;
220
- });
221
212
  }
213
+
214
+ return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts)
215
+ .then(function(response_and_data) {
216
+ return response_and_data.data;
217
+ });
222
218
  }
223
219
 
224
220
  }