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
|
@@ -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
|
* GoalRelationships service.
|
|
20
20
|
* @module api/GoalRelationshipsApi
|
|
21
|
-
* @version 3.0.
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
}
|