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.
- package/.github/workflows/publish.yaml +78 -38
- package/.swagger-codegen/VERSION +1 -1
- package/README.md +140 -29
- package/codegen/templates/README.mustache +129 -26
- package/codegen/templates/api.mustache +17 -15
- package/dist/ApiClient.js +6 -7
- package/dist/api/AllocationsApi.js +307 -0
- 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/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/ApiClient.js +4 -4
- package/src/api/AllocationsApi.js +365 -0
- 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 +9 -2
package/src/api/WorkspacesApi.js
CHANGED
|
@@ -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.
|
|
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
|
* Workspaces service.
|
|
20
20
|
* @module api/WorkspacesApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class WorkspacesApi {
|
|
24
24
|
|
|
@@ -76,36 +76,11 @@ export class WorkspacesApi {
|
|
|
76
76
|
let accepts = ['application/json; charset=UTF-8'];
|
|
77
77
|
let returnType = 'Blob';
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
85
|
-
authNames, contentTypes, accepts, returnType
|
|
86
|
-
),
|
|
87
|
-
this.apiClient,
|
|
88
|
-
{
|
|
89
|
-
'path': '/workspaces/{workspace_gid}/addUser',
|
|
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
|
-
'/workspaces/{workspace_gid}/addUser', 'POST',
|
|
105
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
106
|
-
authNames, contentTypes, accepts, returnType
|
|
107
|
-
);
|
|
108
|
-
}
|
|
79
|
+
return this.apiClient.callApi(
|
|
80
|
+
'/workspaces/{workspace_gid}/addUser', '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 WorkspacesApi {
|
|
|
119
94
|
*/
|
|
120
95
|
addUserForWorkspace(body, workspace_gid, opts) {
|
|
121
96
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return this.addUserForWorkspaceWithHttpInfo(body, workspace_gid, opts)
|
|
127
|
-
.then(function(response_and_data) {
|
|
128
|
-
return response_and_data.data;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
97
|
+
return this.addUserForWorkspaceWithHttpInfo(body, workspace_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 WorkspacesApi {
|
|
|
166
136
|
let accepts = ['application/json; charset=UTF-8'];
|
|
167
137
|
let returnType = 'Blob';
|
|
168
138
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
175
|
-
authNames, contentTypes, accepts, returnType
|
|
176
|
-
),
|
|
177
|
-
this.apiClient,
|
|
178
|
-
{
|
|
179
|
-
'path': '/workspaces/{workspace_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
|
-
'/workspaces/{workspace_gid}', 'GET',
|
|
195
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
196
|
-
authNames, contentTypes, accepts, returnType
|
|
197
|
-
);
|
|
198
|
-
}
|
|
139
|
+
return this.apiClient.callApi(
|
|
140
|
+
'/workspaces/{workspace_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 WorkspacesApi {
|
|
|
208
153
|
*/
|
|
209
154
|
getWorkspace(workspace_gid, opts) {
|
|
210
155
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return this.getWorkspaceWithHttpInfo(workspace_gid, opts)
|
|
216
|
-
.then(function(response_and_data) {
|
|
217
|
-
return response_and_data.data;
|
|
218
|
-
});
|
|
219
|
-
}
|
|
156
|
+
return this.getWorkspaceWithHttpInfo(workspace_gid, opts)
|
|
157
|
+
.then(function(response_and_data) {
|
|
158
|
+
return response_and_data.data;
|
|
159
|
+
});
|
|
220
160
|
}
|
|
221
161
|
|
|
222
162
|
|
|
@@ -251,9 +191,8 @@ export class WorkspacesApi {
|
|
|
251
191
|
let contentTypes = [];
|
|
252
192
|
let accepts = ['application/json; charset=UTF-8'];
|
|
253
193
|
let returnType = 'Blob';
|
|
254
|
-
|
|
255
194
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
256
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
195
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
257
196
|
return Collection.fromApiClient(
|
|
258
197
|
this.apiClient.callApi(
|
|
259
198
|
'/workspaces', 'GET',
|
|
@@ -275,13 +214,13 @@ export class WorkspacesApi {
|
|
|
275
214
|
'returnType': returnType
|
|
276
215
|
}
|
|
277
216
|
)
|
|
278
|
-
} else {
|
|
279
|
-
return this.apiClient.callApi(
|
|
280
|
-
'/workspaces', 'GET',
|
|
281
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
282
|
-
authNames, contentTypes, accepts, returnType
|
|
283
|
-
);
|
|
284
217
|
}
|
|
218
|
+
|
|
219
|
+
return this.apiClient.callApi(
|
|
220
|
+
'/workspaces', 'GET',
|
|
221
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
222
|
+
authNames, contentTypes, accepts, returnType
|
|
223
|
+
);
|
|
285
224
|
}
|
|
286
225
|
|
|
287
226
|
/**
|
|
@@ -294,16 +233,15 @@ export class WorkspacesApi {
|
|
|
294
233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkspaceResponseArray}
|
|
295
234
|
*/
|
|
296
235
|
getWorkspaces(opts) {
|
|
297
|
-
|
|
298
236
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
299
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
300
|
-
return this.getWorkspacesWithHttpInfo(opts)
|
|
301
|
-
} else {
|
|
237
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
302
238
|
return this.getWorkspacesWithHttpInfo(opts)
|
|
303
|
-
.then(function(response_and_data) {
|
|
304
|
-
return response_and_data.data;
|
|
305
|
-
});
|
|
306
239
|
}
|
|
240
|
+
|
|
241
|
+
return this.getWorkspacesWithHttpInfo(opts)
|
|
242
|
+
.then(function(response_and_data) {
|
|
243
|
+
return response_and_data.data;
|
|
244
|
+
});
|
|
307
245
|
}
|
|
308
246
|
|
|
309
247
|
|
|
@@ -343,36 +281,11 @@ export class WorkspacesApi {
|
|
|
343
281
|
let accepts = ['application/json; charset=UTF-8'];
|
|
344
282
|
let returnType = 'Blob';
|
|
345
283
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
352
|
-
authNames, contentTypes, accepts, returnType
|
|
353
|
-
),
|
|
354
|
-
this.apiClient,
|
|
355
|
-
{
|
|
356
|
-
'path': '/workspaces/{workspace_gid}/removeUser',
|
|
357
|
-
'httpMethod': 'POST',
|
|
358
|
-
'pathParams': pathParams,
|
|
359
|
-
'queryParams': queryParams,
|
|
360
|
-
'headerParams': headerParams,
|
|
361
|
-
'formParams': formParams,
|
|
362
|
-
'bodyParam': postBody,
|
|
363
|
-
'authNames': authNames,
|
|
364
|
-
'contentTypes': contentTypes,
|
|
365
|
-
'accepts': accepts,
|
|
366
|
-
'returnType': returnType
|
|
367
|
-
}
|
|
368
|
-
)
|
|
369
|
-
} else {
|
|
370
|
-
return this.apiClient.callApi(
|
|
371
|
-
'/workspaces/{workspace_gid}/removeUser', 'POST',
|
|
372
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
373
|
-
authNames, contentTypes, accepts, returnType
|
|
374
|
-
);
|
|
375
|
-
}
|
|
284
|
+
return this.apiClient.callApi(
|
|
285
|
+
'/workspaces/{workspace_gid}/removeUser', 'POST',
|
|
286
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
287
|
+
authNames, contentTypes, accepts, returnType
|
|
288
|
+
);
|
|
376
289
|
}
|
|
377
290
|
|
|
378
291
|
/**
|
|
@@ -384,15 +297,10 @@ export class WorkspacesApi {
|
|
|
384
297
|
*/
|
|
385
298
|
removeUserForWorkspace(body, workspace_gid) {
|
|
386
299
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
return this.removeUserForWorkspaceWithHttpInfo(body, workspace_gid)
|
|
392
|
-
.then(function(response_and_data) {
|
|
393
|
-
return response_and_data.data;
|
|
394
|
-
});
|
|
395
|
-
}
|
|
300
|
+
return this.removeUserForWorkspaceWithHttpInfo(body, workspace_gid)
|
|
301
|
+
.then(function(response_and_data) {
|
|
302
|
+
return response_and_data.data;
|
|
303
|
+
});
|
|
396
304
|
}
|
|
397
305
|
|
|
398
306
|
|
|
@@ -436,36 +344,11 @@ export class WorkspacesApi {
|
|
|
436
344
|
let accepts = ['application/json; charset=UTF-8'];
|
|
437
345
|
let returnType = 'Blob';
|
|
438
346
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
445
|
-
authNames, contentTypes, accepts, returnType
|
|
446
|
-
),
|
|
447
|
-
this.apiClient,
|
|
448
|
-
{
|
|
449
|
-
'path': '/workspaces/{workspace_gid}',
|
|
450
|
-
'httpMethod': 'PUT',
|
|
451
|
-
'pathParams': pathParams,
|
|
452
|
-
'queryParams': queryParams,
|
|
453
|
-
'headerParams': headerParams,
|
|
454
|
-
'formParams': formParams,
|
|
455
|
-
'bodyParam': postBody,
|
|
456
|
-
'authNames': authNames,
|
|
457
|
-
'contentTypes': contentTypes,
|
|
458
|
-
'accepts': accepts,
|
|
459
|
-
'returnType': returnType
|
|
460
|
-
}
|
|
461
|
-
)
|
|
462
|
-
} else {
|
|
463
|
-
return this.apiClient.callApi(
|
|
464
|
-
'/workspaces/{workspace_gid}', 'PUT',
|
|
465
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
466
|
-
authNames, contentTypes, accepts, returnType
|
|
467
|
-
);
|
|
468
|
-
}
|
|
347
|
+
return this.apiClient.callApi(
|
|
348
|
+
'/workspaces/{workspace_gid}', 'PUT',
|
|
349
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
350
|
+
authNames, contentTypes, accepts, returnType
|
|
351
|
+
);
|
|
469
352
|
}
|
|
470
353
|
|
|
471
354
|
/**
|
|
@@ -479,15 +362,10 @@ export class WorkspacesApi {
|
|
|
479
362
|
*/
|
|
480
363
|
updateWorkspace(body, workspace_gid, opts) {
|
|
481
364
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
return this.updateWorkspaceWithHttpInfo(body, workspace_gid, opts)
|
|
487
|
-
.then(function(response_and_data) {
|
|
488
|
-
return response_and_data.data;
|
|
489
|
-
});
|
|
490
|
-
}
|
|
365
|
+
return this.updateWorkspaceWithHttpInfo(body, workspace_gid, opts)
|
|
366
|
+
.then(function(response_and_data) {
|
|
367
|
+
return response_and_data.data;
|
|
368
|
+
});
|
|
491
369
|
}
|
|
492
370
|
|
|
493
371
|
}
|
package/src/index.js
CHANGED
|
@@ -7,12 +7,13 @@
|
|
|
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.
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
import {ApiClient} from './ApiClient';
|
|
16
|
+
import {AllocationsApi} from './api/AllocationsApi';
|
|
16
17
|
import {AttachmentsApi} from './api/AttachmentsApi';
|
|
17
18
|
import {AuditLogAPIApi} from './api/AuditLogAPIApi';
|
|
18
19
|
import {BatchAPIApi} from './api/BatchAPIApi';
|
|
@@ -78,7 +79,7 @@ import {WorkspacesApi} from './api/WorkspacesApi';
|
|
|
78
79
|
* </pre>
|
|
79
80
|
* </p>
|
|
80
81
|
* @module index
|
|
81
|
-
* @version 3.0.
|
|
82
|
+
* @version 3.0.4
|
|
82
83
|
*/
|
|
83
84
|
export {
|
|
84
85
|
/**
|
|
@@ -89,6 +90,12 @@ export {
|
|
|
89
90
|
|
|
90
91
|
,
|
|
91
92
|
|
|
93
|
+
/**
|
|
94
|
+
* The AllocationsApi service constructor.
|
|
95
|
+
* @property {module:api/AllocationsApi}
|
|
96
|
+
*/
|
|
97
|
+
AllocationsApi,
|
|
98
|
+
|
|
92
99
|
/**
|
|
93
100
|
* The AttachmentsApi service constructor.
|
|
94
101
|
* @property {module:api/AttachmentsApi}
|