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
|
* StatusUpdates service.
|
|
20
20
|
* @module api/StatusUpdatesApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class StatusUpdatesApi {
|
|
24
24
|
|
|
@@ -73,36 +73,11 @@ export class StatusUpdatesApi {
|
|
|
73
73
|
let accepts = ['application/json; charset=UTF-8'];
|
|
74
74
|
let returnType = 'Blob';
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
82
|
-
authNames, contentTypes, accepts, returnType
|
|
83
|
-
),
|
|
84
|
-
this.apiClient,
|
|
85
|
-
{
|
|
86
|
-
'path': '/status_updates',
|
|
87
|
-
'httpMethod': 'POST',
|
|
88
|
-
'pathParams': pathParams,
|
|
89
|
-
'queryParams': queryParams,
|
|
90
|
-
'headerParams': headerParams,
|
|
91
|
-
'formParams': formParams,
|
|
92
|
-
'bodyParam': postBody,
|
|
93
|
-
'authNames': authNames,
|
|
94
|
-
'contentTypes': contentTypes,
|
|
95
|
-
'accepts': accepts,
|
|
96
|
-
'returnType': returnType
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
} else {
|
|
100
|
-
return this.apiClient.callApi(
|
|
101
|
-
'/status_updates', 'POST',
|
|
102
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
103
|
-
authNames, contentTypes, accepts, returnType
|
|
104
|
-
);
|
|
105
|
-
}
|
|
76
|
+
return this.apiClient.callApi(
|
|
77
|
+
'/status_updates', 'POST',
|
|
78
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
79
|
+
authNames, contentTypes, accepts, returnType
|
|
80
|
+
);
|
|
106
81
|
}
|
|
107
82
|
|
|
108
83
|
/**
|
|
@@ -117,15 +92,10 @@ export class StatusUpdatesApi {
|
|
|
117
92
|
*/
|
|
118
93
|
createStatusForObject(body, opts) {
|
|
119
94
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return this.createStatusForObjectWithHttpInfo(body, opts)
|
|
125
|
-
.then(function(response_and_data) {
|
|
126
|
-
return response_and_data.data;
|
|
127
|
-
});
|
|
128
|
-
}
|
|
95
|
+
return this.createStatusForObjectWithHttpInfo(body, opts)
|
|
96
|
+
.then(function(response_and_data) {
|
|
97
|
+
return response_and_data.data;
|
|
98
|
+
});
|
|
129
99
|
}
|
|
130
100
|
|
|
131
101
|
|
|
@@ -160,36 +130,11 @@ export class StatusUpdatesApi {
|
|
|
160
130
|
let accepts = ['application/json; charset=UTF-8'];
|
|
161
131
|
let returnType = 'Blob';
|
|
162
132
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
169
|
-
authNames, contentTypes, accepts, returnType
|
|
170
|
-
),
|
|
171
|
-
this.apiClient,
|
|
172
|
-
{
|
|
173
|
-
'path': '/status_updates/{status_update_gid}',
|
|
174
|
-
'httpMethod': 'DELETE',
|
|
175
|
-
'pathParams': pathParams,
|
|
176
|
-
'queryParams': queryParams,
|
|
177
|
-
'headerParams': headerParams,
|
|
178
|
-
'formParams': formParams,
|
|
179
|
-
'bodyParam': postBody,
|
|
180
|
-
'authNames': authNames,
|
|
181
|
-
'contentTypes': contentTypes,
|
|
182
|
-
'accepts': accepts,
|
|
183
|
-
'returnType': returnType
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
} else {
|
|
187
|
-
return this.apiClient.callApi(
|
|
188
|
-
'/status_updates/{status_update_gid}', 'DELETE',
|
|
189
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
190
|
-
authNames, contentTypes, accepts, returnType
|
|
191
|
-
);
|
|
192
|
-
}
|
|
133
|
+
return this.apiClient.callApi(
|
|
134
|
+
'/status_updates/{status_update_gid}', 'DELETE',
|
|
135
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
136
|
+
authNames, contentTypes, accepts, returnType
|
|
137
|
+
);
|
|
193
138
|
}
|
|
194
139
|
|
|
195
140
|
/**
|
|
@@ -200,15 +145,10 @@ export class StatusUpdatesApi {
|
|
|
200
145
|
*/
|
|
201
146
|
deleteStatus(status_update_gid) {
|
|
202
147
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return this.deleteStatusWithHttpInfo(status_update_gid)
|
|
208
|
-
.then(function(response_and_data) {
|
|
209
|
-
return response_and_data.data;
|
|
210
|
-
});
|
|
211
|
-
}
|
|
148
|
+
return this.deleteStatusWithHttpInfo(status_update_gid)
|
|
149
|
+
.then(function(response_and_data) {
|
|
150
|
+
return response_and_data.data;
|
|
151
|
+
});
|
|
212
152
|
}
|
|
213
153
|
|
|
214
154
|
|
|
@@ -247,36 +187,11 @@ export class StatusUpdatesApi {
|
|
|
247
187
|
let accepts = ['application/json; charset=UTF-8'];
|
|
248
188
|
let returnType = 'Blob';
|
|
249
189
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
256
|
-
authNames, contentTypes, accepts, returnType
|
|
257
|
-
),
|
|
258
|
-
this.apiClient,
|
|
259
|
-
{
|
|
260
|
-
'path': '/status_updates/{status_update_gid}',
|
|
261
|
-
'httpMethod': 'GET',
|
|
262
|
-
'pathParams': pathParams,
|
|
263
|
-
'queryParams': queryParams,
|
|
264
|
-
'headerParams': headerParams,
|
|
265
|
-
'formParams': formParams,
|
|
266
|
-
'bodyParam': postBody,
|
|
267
|
-
'authNames': authNames,
|
|
268
|
-
'contentTypes': contentTypes,
|
|
269
|
-
'accepts': accepts,
|
|
270
|
-
'returnType': returnType
|
|
271
|
-
}
|
|
272
|
-
)
|
|
273
|
-
} else {
|
|
274
|
-
return this.apiClient.callApi(
|
|
275
|
-
'/status_updates/{status_update_gid}', 'GET',
|
|
276
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
277
|
-
authNames, contentTypes, accepts, returnType
|
|
278
|
-
);
|
|
279
|
-
}
|
|
190
|
+
return this.apiClient.callApi(
|
|
191
|
+
'/status_updates/{status_update_gid}', 'GET',
|
|
192
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
193
|
+
authNames, contentTypes, accepts, returnType
|
|
194
|
+
);
|
|
280
195
|
}
|
|
281
196
|
|
|
282
197
|
/**
|
|
@@ -289,15 +204,10 @@ export class StatusUpdatesApi {
|
|
|
289
204
|
*/
|
|
290
205
|
getStatus(status_update_gid, opts) {
|
|
291
206
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return this.getStatusWithHttpInfo(status_update_gid, opts)
|
|
297
|
-
.then(function(response_and_data) {
|
|
298
|
-
return response_and_data.data;
|
|
299
|
-
});
|
|
300
|
-
}
|
|
207
|
+
return this.getStatusWithHttpInfo(status_update_gid, opts)
|
|
208
|
+
.then(function(response_and_data) {
|
|
209
|
+
return response_and_data.data;
|
|
210
|
+
});
|
|
301
211
|
}
|
|
302
212
|
|
|
303
213
|
|
|
@@ -339,9 +249,8 @@ export class StatusUpdatesApi {
|
|
|
339
249
|
let contentTypes = [];
|
|
340
250
|
let accepts = ['application/json; charset=UTF-8'];
|
|
341
251
|
let returnType = 'Blob';
|
|
342
|
-
|
|
343
252
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
344
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
253
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
345
254
|
return Collection.fromApiClient(
|
|
346
255
|
this.apiClient.callApi(
|
|
347
256
|
'/status_updates', 'GET',
|
|
@@ -363,13 +272,13 @@ export class StatusUpdatesApi {
|
|
|
363
272
|
'returnType': returnType
|
|
364
273
|
}
|
|
365
274
|
)
|
|
366
|
-
} else {
|
|
367
|
-
return this.apiClient.callApi(
|
|
368
|
-
'/status_updates', 'GET',
|
|
369
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
370
|
-
authNames, contentTypes, accepts, returnType
|
|
371
|
-
);
|
|
372
275
|
}
|
|
276
|
+
|
|
277
|
+
return this.apiClient.callApi(
|
|
278
|
+
'/status_updates', 'GET',
|
|
279
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
280
|
+
authNames, contentTypes, accepts, returnType
|
|
281
|
+
);
|
|
373
282
|
}
|
|
374
283
|
|
|
375
284
|
/**
|
|
@@ -384,16 +293,15 @@ export class StatusUpdatesApi {
|
|
|
384
293
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StatusUpdateResponseArray}
|
|
385
294
|
*/
|
|
386
295
|
getStatusesForObject(parent, opts) {
|
|
387
|
-
|
|
388
296
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
389
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
297
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
390
298
|
return this.getStatusesForObjectWithHttpInfo(parent, opts)
|
|
391
|
-
} else {
|
|
392
|
-
return this.getStatusesForObjectWithHttpInfo(parent, opts)
|
|
393
|
-
.then(function(response_and_data) {
|
|
394
|
-
return response_and_data.data;
|
|
395
|
-
});
|
|
396
299
|
}
|
|
300
|
+
|
|
301
|
+
return this.getStatusesForObjectWithHttpInfo(parent, opts)
|
|
302
|
+
.then(function(response_and_data) {
|
|
303
|
+
return response_and_data.data;
|
|
304
|
+
});
|
|
397
305
|
}
|
|
398
306
|
|
|
399
307
|
}
|
package/src/api/StoriesApi.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
|
* Stories service.
|
|
20
20
|
* @module api/StoriesApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class StoriesApi {
|
|
24
24
|
|
|
@@ -76,36 +76,11 @@ export class StoriesApi {
|
|
|
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': '/tasks/{task_gid}/stories',
|
|
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
|
-
'/tasks/{task_gid}/stories', 'POST',
|
|
105
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
106
|
-
authNames, contentTypes, accepts, returnType
|
|
107
|
-
);
|
|
108
|
-
}
|
|
79
|
+
return this.apiClient.callApi(
|
|
80
|
+
'/tasks/{task_gid}/stories', '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 StoriesApi {
|
|
|
119
94
|
*/
|
|
120
95
|
createStoryForTask(body, task_gid, opts) {
|
|
121
96
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return this.createStoryForTaskWithHttpInfo(body, task_gid, opts)
|
|
127
|
-
.then(function(response_and_data) {
|
|
128
|
-
return response_and_data.data;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
97
|
+
return this.createStoryForTaskWithHttpInfo(body, task_gid, opts)
|
|
98
|
+
.then(function(response_and_data) {
|
|
99
|
+
return response_and_data.data;
|
|
100
|
+
});
|
|
131
101
|
}
|
|
132
102
|
|
|
133
103
|
|
|
@@ -162,36 +132,11 @@ export class StoriesApi {
|
|
|
162
132
|
let accepts = ['application/json; charset=UTF-8'];
|
|
163
133
|
let returnType = 'Blob';
|
|
164
134
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
171
|
-
authNames, contentTypes, accepts, returnType
|
|
172
|
-
),
|
|
173
|
-
this.apiClient,
|
|
174
|
-
{
|
|
175
|
-
'path': '/stories/{story_gid}',
|
|
176
|
-
'httpMethod': 'DELETE',
|
|
177
|
-
'pathParams': pathParams,
|
|
178
|
-
'queryParams': queryParams,
|
|
179
|
-
'headerParams': headerParams,
|
|
180
|
-
'formParams': formParams,
|
|
181
|
-
'bodyParam': postBody,
|
|
182
|
-
'authNames': authNames,
|
|
183
|
-
'contentTypes': contentTypes,
|
|
184
|
-
'accepts': accepts,
|
|
185
|
-
'returnType': returnType
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
} else {
|
|
189
|
-
return this.apiClient.callApi(
|
|
190
|
-
'/stories/{story_gid}', 'DELETE',
|
|
191
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
192
|
-
authNames, contentTypes, accepts, returnType
|
|
193
|
-
);
|
|
194
|
-
}
|
|
135
|
+
return this.apiClient.callApi(
|
|
136
|
+
'/stories/{story_gid}', 'DELETE',
|
|
137
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
138
|
+
authNames, contentTypes, accepts, returnType
|
|
139
|
+
);
|
|
195
140
|
}
|
|
196
141
|
|
|
197
142
|
/**
|
|
@@ -202,15 +147,10 @@ export class StoriesApi {
|
|
|
202
147
|
*/
|
|
203
148
|
deleteStory(story_gid) {
|
|
204
149
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
return this.deleteStoryWithHttpInfo(story_gid)
|
|
210
|
-
.then(function(response_and_data) {
|
|
211
|
-
return response_and_data.data;
|
|
212
|
-
});
|
|
213
|
-
}
|
|
150
|
+
return this.deleteStoryWithHttpInfo(story_gid)
|
|
151
|
+
.then(function(response_and_data) {
|
|
152
|
+
return response_and_data.data;
|
|
153
|
+
});
|
|
214
154
|
}
|
|
215
155
|
|
|
216
156
|
|
|
@@ -250,9 +190,8 @@ export class StoriesApi {
|
|
|
250
190
|
let contentTypes = [];
|
|
251
191
|
let accepts = ['application/json; charset=UTF-8'];
|
|
252
192
|
let returnType = 'Blob';
|
|
253
|
-
|
|
254
193
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
255
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
194
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
256
195
|
return Collection.fromApiClient(
|
|
257
196
|
this.apiClient.callApi(
|
|
258
197
|
'/tasks/{task_gid}/stories', 'GET',
|
|
@@ -274,13 +213,13 @@ export class StoriesApi {
|
|
|
274
213
|
'returnType': returnType
|
|
275
214
|
}
|
|
276
215
|
)
|
|
277
|
-
} else {
|
|
278
|
-
return this.apiClient.callApi(
|
|
279
|
-
'/tasks/{task_gid}/stories', 'GET',
|
|
280
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
281
|
-
authNames, contentTypes, accepts, returnType
|
|
282
|
-
);
|
|
283
216
|
}
|
|
217
|
+
|
|
218
|
+
return this.apiClient.callApi(
|
|
219
|
+
'/tasks/{task_gid}/stories', 'GET',
|
|
220
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
221
|
+
authNames, contentTypes, accepts, returnType
|
|
222
|
+
);
|
|
284
223
|
}
|
|
285
224
|
|
|
286
225
|
/**
|
|
@@ -294,16 +233,15 @@ export class StoriesApi {
|
|
|
294
233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StoryResponseArray}
|
|
295
234
|
*/
|
|
296
235
|
getStoriesForTask(task_gid, opts) {
|
|
297
|
-
|
|
298
236
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
299
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
237
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
300
238
|
return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
|
|
301
|
-
} else {
|
|
302
|
-
return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
|
|
303
|
-
.then(function(response_and_data) {
|
|
304
|
-
return response_and_data.data;
|
|
305
|
-
});
|
|
306
239
|
}
|
|
240
|
+
|
|
241
|
+
return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
|
|
242
|
+
.then(function(response_and_data) {
|
|
243
|
+
return response_and_data.data;
|
|
244
|
+
});
|
|
307
245
|
}
|
|
308
246
|
|
|
309
247
|
|
|
@@ -342,36 +280,11 @@ export class StoriesApi {
|
|
|
342
280
|
let accepts = ['application/json; charset=UTF-8'];
|
|
343
281
|
let returnType = 'Blob';
|
|
344
282
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
351
|
-
authNames, contentTypes, accepts, returnType
|
|
352
|
-
),
|
|
353
|
-
this.apiClient,
|
|
354
|
-
{
|
|
355
|
-
'path': '/stories/{story_gid}',
|
|
356
|
-
'httpMethod': 'GET',
|
|
357
|
-
'pathParams': pathParams,
|
|
358
|
-
'queryParams': queryParams,
|
|
359
|
-
'headerParams': headerParams,
|
|
360
|
-
'formParams': formParams,
|
|
361
|
-
'bodyParam': postBody,
|
|
362
|
-
'authNames': authNames,
|
|
363
|
-
'contentTypes': contentTypes,
|
|
364
|
-
'accepts': accepts,
|
|
365
|
-
'returnType': returnType
|
|
366
|
-
}
|
|
367
|
-
)
|
|
368
|
-
} else {
|
|
369
|
-
return this.apiClient.callApi(
|
|
370
|
-
'/stories/{story_gid}', 'GET',
|
|
371
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
372
|
-
authNames, contentTypes, accepts, returnType
|
|
373
|
-
);
|
|
374
|
-
}
|
|
283
|
+
return this.apiClient.callApi(
|
|
284
|
+
'/stories/{story_gid}', 'GET',
|
|
285
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
286
|
+
authNames, contentTypes, accepts, returnType
|
|
287
|
+
);
|
|
375
288
|
}
|
|
376
289
|
|
|
377
290
|
/**
|
|
@@ -384,15 +297,10 @@ export class StoriesApi {
|
|
|
384
297
|
*/
|
|
385
298
|
getStory(story_gid, opts) {
|
|
386
299
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
return this.getStoryWithHttpInfo(story_gid, opts)
|
|
392
|
-
.then(function(response_and_data) {
|
|
393
|
-
return response_and_data.data;
|
|
394
|
-
});
|
|
395
|
-
}
|
|
300
|
+
return this.getStoryWithHttpInfo(story_gid, opts)
|
|
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 StoriesApi {
|
|
|
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': '/stories/{story_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
|
-
'/stories/{story_gid}', 'PUT',
|
|
465
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
466
|
-
authNames, contentTypes, accepts, returnType
|
|
467
|
-
);
|
|
468
|
-
}
|
|
347
|
+
return this.apiClient.callApi(
|
|
348
|
+
'/stories/{story_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 StoriesApi {
|
|
|
479
362
|
*/
|
|
480
363
|
updateStory(body, story_gid, opts) {
|
|
481
364
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
return this.updateStoryWithHttpInfo(body, story_gid, opts)
|
|
487
|
-
.then(function(response_and_data) {
|
|
488
|
-
return response_and_data.data;
|
|
489
|
-
});
|
|
490
|
-
}
|
|
365
|
+
return this.updateStoryWithHttpInfo(body, story_gid, opts)
|
|
366
|
+
.then(function(response_and_data) {
|
|
367
|
+
return response_and_data.data;
|
|
368
|
+
});
|
|
491
369
|
}
|
|
492
370
|
|
|
493
371
|
}
|