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
  * AuditLogAPI service.
20
20
  * @module api/AuditLogAPIApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class AuditLogAPIApi {
24
24
 
@@ -77,9 +77,8 @@ export class AuditLogAPIApi {
77
77
  let contentTypes = [];
78
78
  let accepts = ['application/json; charset=UTF-8'];
79
79
  let returnType = 'Blob';
80
-
81
80
  // Check if RETURN_COLLECTION is set and return a collection object if it is
82
- if (this.apiClient.RETURN_COLLECTION && true) {
81
+ if (this.apiClient.RETURN_COLLECTION) {
83
82
  return Collection.fromApiClient(
84
83
  this.apiClient.callApi(
85
84
  '/workspaces/{workspace_gid}/audit_log_events', 'GET',
@@ -101,13 +100,13 @@ export class AuditLogAPIApi {
101
100
  'returnType': returnType
102
101
  }
103
102
  )
104
- } else {
105
- return this.apiClient.callApi(
106
- '/workspaces/{workspace_gid}/audit_log_events', 'GET',
107
- pathParams, queryParams, headerParams, formParams, postBody,
108
- authNames, contentTypes, accepts, returnType
109
- );
110
103
  }
104
+
105
+ return this.apiClient.callApi(
106
+ '/workspaces/{workspace_gid}/audit_log_events', 'GET',
107
+ pathParams, queryParams, headerParams, formParams, postBody,
108
+ authNames, contentTypes, accepts, returnType
109
+ );
111
110
  }
112
111
 
113
112
  /**
@@ -126,16 +125,15 @@ export class AuditLogAPIApi {
126
125
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuditLogEventArray}
127
126
  */
128
127
  getAuditLogEvents(workspace_gid, opts) {
129
-
130
128
  // Check if RETURN_COLLECTION is set and return a collection object if it is
131
- if (this.apiClient.RETURN_COLLECTION && true) {
129
+ if (this.apiClient.RETURN_COLLECTION) {
132
130
  return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts)
133
- } else {
134
- return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts)
135
- .then(function(response_and_data) {
136
- return response_and_data.data;
137
- });
138
131
  }
132
+
133
+ return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts)
134
+ .then(function(response_and_data) {
135
+ return response_and_data.data;
136
+ });
139
137
  }
140
138
 
141
139
  }
@@ -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.4
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.4
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
  }