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/TagsApi.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
|
* Tags service.
|
|
20
20
|
* @module api/TagsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class TagsApi {
|
|
24
24
|
|
|
@@ -71,36 +71,11 @@ export class TagsApi {
|
|
|
71
71
|
let accepts = ['application/json; charset=UTF-8'];
|
|
72
72
|
let returnType = 'Blob';
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
80
|
-
authNames, contentTypes, accepts, returnType
|
|
81
|
-
),
|
|
82
|
-
this.apiClient,
|
|
83
|
-
{
|
|
84
|
-
'path': '/tags',
|
|
85
|
-
'httpMethod': 'POST',
|
|
86
|
-
'pathParams': pathParams,
|
|
87
|
-
'queryParams': queryParams,
|
|
88
|
-
'headerParams': headerParams,
|
|
89
|
-
'formParams': formParams,
|
|
90
|
-
'bodyParam': postBody,
|
|
91
|
-
'authNames': authNames,
|
|
92
|
-
'contentTypes': contentTypes,
|
|
93
|
-
'accepts': accepts,
|
|
94
|
-
'returnType': returnType
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
} else {
|
|
98
|
-
return this.apiClient.callApi(
|
|
99
|
-
'/tags', 'POST',
|
|
100
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
101
|
-
authNames, contentTypes, accepts, returnType
|
|
102
|
-
);
|
|
103
|
-
}
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/tags', 'POST',
|
|
76
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
77
|
+
authNames, contentTypes, accepts, returnType
|
|
78
|
+
);
|
|
104
79
|
}
|
|
105
80
|
|
|
106
81
|
/**
|
|
@@ -113,15 +88,10 @@ export class TagsApi {
|
|
|
113
88
|
*/
|
|
114
89
|
createTag(body, opts) {
|
|
115
90
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return this.createTagWithHttpInfo(body, opts)
|
|
121
|
-
.then(function(response_and_data) {
|
|
122
|
-
return response_and_data.data;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
91
|
+
return this.createTagWithHttpInfo(body, opts)
|
|
92
|
+
.then(function(response_and_data) {
|
|
93
|
+
return response_and_data.data;
|
|
94
|
+
});
|
|
125
95
|
}
|
|
126
96
|
|
|
127
97
|
|
|
@@ -165,36 +135,11 @@ export class TagsApi {
|
|
|
165
135
|
let accepts = ['application/json; charset=UTF-8'];
|
|
166
136
|
let returnType = 'Blob';
|
|
167
137
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
174
|
-
authNames, contentTypes, accepts, returnType
|
|
175
|
-
),
|
|
176
|
-
this.apiClient,
|
|
177
|
-
{
|
|
178
|
-
'path': '/workspaces/{workspace_gid}/tags',
|
|
179
|
-
'httpMethod': 'POST',
|
|
180
|
-
'pathParams': pathParams,
|
|
181
|
-
'queryParams': queryParams,
|
|
182
|
-
'headerParams': headerParams,
|
|
183
|
-
'formParams': formParams,
|
|
184
|
-
'bodyParam': postBody,
|
|
185
|
-
'authNames': authNames,
|
|
186
|
-
'contentTypes': contentTypes,
|
|
187
|
-
'accepts': accepts,
|
|
188
|
-
'returnType': returnType
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
} else {
|
|
192
|
-
return this.apiClient.callApi(
|
|
193
|
-
'/workspaces/{workspace_gid}/tags', 'POST',
|
|
194
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
195
|
-
authNames, contentTypes, accepts, returnType
|
|
196
|
-
);
|
|
197
|
-
}
|
|
138
|
+
return this.apiClient.callApi(
|
|
139
|
+
'/workspaces/{workspace_gid}/tags', 'POST',
|
|
140
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
141
|
+
authNames, contentTypes, accepts, returnType
|
|
142
|
+
);
|
|
198
143
|
}
|
|
199
144
|
|
|
200
145
|
/**
|
|
@@ -208,15 +153,10 @@ export class TagsApi {
|
|
|
208
153
|
*/
|
|
209
154
|
createTagForWorkspace(body, workspace_gid, opts) {
|
|
210
155
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return this.createTagForWorkspaceWithHttpInfo(body, workspace_gid, opts)
|
|
216
|
-
.then(function(response_and_data) {
|
|
217
|
-
return response_and_data.data;
|
|
218
|
-
});
|
|
219
|
-
}
|
|
156
|
+
return this.createTagForWorkspaceWithHttpInfo(body, workspace_gid, opts)
|
|
157
|
+
.then(function(response_and_data) {
|
|
158
|
+
return response_and_data.data;
|
|
159
|
+
});
|
|
220
160
|
}
|
|
221
161
|
|
|
222
162
|
|
|
@@ -251,36 +191,11 @@ export class TagsApi {
|
|
|
251
191
|
let accepts = ['application/json; charset=UTF-8'];
|
|
252
192
|
let returnType = 'Blob';
|
|
253
193
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
260
|
-
authNames, contentTypes, accepts, returnType
|
|
261
|
-
),
|
|
262
|
-
this.apiClient,
|
|
263
|
-
{
|
|
264
|
-
'path': '/tags/{tag_gid}',
|
|
265
|
-
'httpMethod': 'DELETE',
|
|
266
|
-
'pathParams': pathParams,
|
|
267
|
-
'queryParams': queryParams,
|
|
268
|
-
'headerParams': headerParams,
|
|
269
|
-
'formParams': formParams,
|
|
270
|
-
'bodyParam': postBody,
|
|
271
|
-
'authNames': authNames,
|
|
272
|
-
'contentTypes': contentTypes,
|
|
273
|
-
'accepts': accepts,
|
|
274
|
-
'returnType': returnType
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
} else {
|
|
278
|
-
return this.apiClient.callApi(
|
|
279
|
-
'/tags/{tag_gid}', 'DELETE',
|
|
280
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
281
|
-
authNames, contentTypes, accepts, returnType
|
|
282
|
-
);
|
|
283
|
-
}
|
|
194
|
+
return this.apiClient.callApi(
|
|
195
|
+
'/tags/{tag_gid}', 'DELETE',
|
|
196
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
197
|
+
authNames, contentTypes, accepts, returnType
|
|
198
|
+
);
|
|
284
199
|
}
|
|
285
200
|
|
|
286
201
|
/**
|
|
@@ -291,15 +206,10 @@ export class TagsApi {
|
|
|
291
206
|
*/
|
|
292
207
|
deleteTag(tag_gid) {
|
|
293
208
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
return this.deleteTagWithHttpInfo(tag_gid)
|
|
299
|
-
.then(function(response_and_data) {
|
|
300
|
-
return response_and_data.data;
|
|
301
|
-
});
|
|
302
|
-
}
|
|
209
|
+
return this.deleteTagWithHttpInfo(tag_gid)
|
|
210
|
+
.then(function(response_and_data) {
|
|
211
|
+
return response_and_data.data;
|
|
212
|
+
});
|
|
303
213
|
}
|
|
304
214
|
|
|
305
215
|
|
|
@@ -338,36 +248,11 @@ export class TagsApi {
|
|
|
338
248
|
let accepts = ['application/json; charset=UTF-8'];
|
|
339
249
|
let returnType = 'Blob';
|
|
340
250
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
347
|
-
authNames, contentTypes, accepts, returnType
|
|
348
|
-
),
|
|
349
|
-
this.apiClient,
|
|
350
|
-
{
|
|
351
|
-
'path': '/tags/{tag_gid}',
|
|
352
|
-
'httpMethod': 'GET',
|
|
353
|
-
'pathParams': pathParams,
|
|
354
|
-
'queryParams': queryParams,
|
|
355
|
-
'headerParams': headerParams,
|
|
356
|
-
'formParams': formParams,
|
|
357
|
-
'bodyParam': postBody,
|
|
358
|
-
'authNames': authNames,
|
|
359
|
-
'contentTypes': contentTypes,
|
|
360
|
-
'accepts': accepts,
|
|
361
|
-
'returnType': returnType
|
|
362
|
-
}
|
|
363
|
-
)
|
|
364
|
-
} else {
|
|
365
|
-
return this.apiClient.callApi(
|
|
366
|
-
'/tags/{tag_gid}', 'GET',
|
|
367
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
368
|
-
authNames, contentTypes, accepts, returnType
|
|
369
|
-
);
|
|
370
|
-
}
|
|
251
|
+
return this.apiClient.callApi(
|
|
252
|
+
'/tags/{tag_gid}', 'GET',
|
|
253
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
254
|
+
authNames, contentTypes, accepts, returnType
|
|
255
|
+
);
|
|
371
256
|
}
|
|
372
257
|
|
|
373
258
|
/**
|
|
@@ -380,15 +265,10 @@ export class TagsApi {
|
|
|
380
265
|
*/
|
|
381
266
|
getTag(tag_gid, opts) {
|
|
382
267
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return this.getTagWithHttpInfo(tag_gid, opts)
|
|
388
|
-
.then(function(response_and_data) {
|
|
389
|
-
return response_and_data.data;
|
|
390
|
-
});
|
|
391
|
-
}
|
|
268
|
+
return this.getTagWithHttpInfo(tag_gid, opts)
|
|
269
|
+
.then(function(response_and_data) {
|
|
270
|
+
return response_and_data.data;
|
|
271
|
+
});
|
|
392
272
|
}
|
|
393
273
|
|
|
394
274
|
|
|
@@ -424,9 +304,8 @@ export class TagsApi {
|
|
|
424
304
|
let contentTypes = [];
|
|
425
305
|
let accepts = ['application/json; charset=UTF-8'];
|
|
426
306
|
let returnType = 'Blob';
|
|
427
|
-
|
|
428
307
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
429
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
308
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
430
309
|
return Collection.fromApiClient(
|
|
431
310
|
this.apiClient.callApi(
|
|
432
311
|
'/tags', 'GET',
|
|
@@ -448,13 +327,13 @@ export class TagsApi {
|
|
|
448
327
|
'returnType': returnType
|
|
449
328
|
}
|
|
450
329
|
)
|
|
451
|
-
} else {
|
|
452
|
-
return this.apiClient.callApi(
|
|
453
|
-
'/tags', 'GET',
|
|
454
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
455
|
-
authNames, contentTypes, accepts, returnType
|
|
456
|
-
);
|
|
457
330
|
}
|
|
331
|
+
|
|
332
|
+
return this.apiClient.callApi(
|
|
333
|
+
'/tags', 'GET',
|
|
334
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
335
|
+
authNames, contentTypes, accepts, returnType
|
|
336
|
+
);
|
|
458
337
|
}
|
|
459
338
|
|
|
460
339
|
/**
|
|
@@ -468,16 +347,15 @@ export class TagsApi {
|
|
|
468
347
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TagResponseArray}
|
|
469
348
|
*/
|
|
470
349
|
getTags(opts) {
|
|
471
|
-
|
|
472
350
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
473
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
351
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
474
352
|
return this.getTagsWithHttpInfo(opts)
|
|
475
|
-
} else {
|
|
476
|
-
return this.getTagsWithHttpInfo(opts)
|
|
477
|
-
.then(function(response_and_data) {
|
|
478
|
-
return response_and_data.data;
|
|
479
|
-
});
|
|
480
353
|
}
|
|
354
|
+
|
|
355
|
+
return this.getTagsWithHttpInfo(opts)
|
|
356
|
+
.then(function(response_and_data) {
|
|
357
|
+
return response_and_data.data;
|
|
358
|
+
});
|
|
481
359
|
}
|
|
482
360
|
|
|
483
361
|
|
|
@@ -517,9 +395,8 @@ export class TagsApi {
|
|
|
517
395
|
let contentTypes = [];
|
|
518
396
|
let accepts = ['application/json; charset=UTF-8'];
|
|
519
397
|
let returnType = 'Blob';
|
|
520
|
-
|
|
521
398
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
522
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
399
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
523
400
|
return Collection.fromApiClient(
|
|
524
401
|
this.apiClient.callApi(
|
|
525
402
|
'/tasks/{task_gid}/tags', 'GET',
|
|
@@ -541,13 +418,13 @@ export class TagsApi {
|
|
|
541
418
|
'returnType': returnType
|
|
542
419
|
}
|
|
543
420
|
)
|
|
544
|
-
} else {
|
|
545
|
-
return this.apiClient.callApi(
|
|
546
|
-
'/tasks/{task_gid}/tags', 'GET',
|
|
547
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
548
|
-
authNames, contentTypes, accepts, returnType
|
|
549
|
-
);
|
|
550
421
|
}
|
|
422
|
+
|
|
423
|
+
return this.apiClient.callApi(
|
|
424
|
+
'/tasks/{task_gid}/tags', 'GET',
|
|
425
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
426
|
+
authNames, contentTypes, accepts, returnType
|
|
427
|
+
);
|
|
551
428
|
}
|
|
552
429
|
|
|
553
430
|
/**
|
|
@@ -561,16 +438,15 @@ export class TagsApi {
|
|
|
561
438
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TagResponseArray}
|
|
562
439
|
*/
|
|
563
440
|
getTagsForTask(task_gid, opts) {
|
|
564
|
-
|
|
565
441
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
566
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
567
|
-
return this.getTagsForTaskWithHttpInfo(task_gid, opts)
|
|
568
|
-
} else {
|
|
442
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
569
443
|
return this.getTagsForTaskWithHttpInfo(task_gid, opts)
|
|
570
|
-
.then(function(response_and_data) {
|
|
571
|
-
return response_and_data.data;
|
|
572
|
-
});
|
|
573
444
|
}
|
|
445
|
+
|
|
446
|
+
return this.getTagsForTaskWithHttpInfo(task_gid, opts)
|
|
447
|
+
.then(function(response_and_data) {
|
|
448
|
+
return response_and_data.data;
|
|
449
|
+
});
|
|
574
450
|
}
|
|
575
451
|
|
|
576
452
|
|
|
@@ -610,9 +486,8 @@ export class TagsApi {
|
|
|
610
486
|
let contentTypes = [];
|
|
611
487
|
let accepts = ['application/json; charset=UTF-8'];
|
|
612
488
|
let returnType = 'Blob';
|
|
613
|
-
|
|
614
489
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
615
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
490
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
616
491
|
return Collection.fromApiClient(
|
|
617
492
|
this.apiClient.callApi(
|
|
618
493
|
'/workspaces/{workspace_gid}/tags', 'GET',
|
|
@@ -634,13 +509,13 @@ export class TagsApi {
|
|
|
634
509
|
'returnType': returnType
|
|
635
510
|
}
|
|
636
511
|
)
|
|
637
|
-
} else {
|
|
638
|
-
return this.apiClient.callApi(
|
|
639
|
-
'/workspaces/{workspace_gid}/tags', 'GET',
|
|
640
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
641
|
-
authNames, contentTypes, accepts, returnType
|
|
642
|
-
);
|
|
643
512
|
}
|
|
513
|
+
|
|
514
|
+
return this.apiClient.callApi(
|
|
515
|
+
'/workspaces/{workspace_gid}/tags', 'GET',
|
|
516
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
517
|
+
authNames, contentTypes, accepts, returnType
|
|
518
|
+
);
|
|
644
519
|
}
|
|
645
520
|
|
|
646
521
|
/**
|
|
@@ -654,16 +529,15 @@ export class TagsApi {
|
|
|
654
529
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TagResponseArray}
|
|
655
530
|
*/
|
|
656
531
|
getTagsForWorkspace(workspace_gid, opts) {
|
|
657
|
-
|
|
658
532
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
659
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
533
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
660
534
|
return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts)
|
|
661
|
-
} else {
|
|
662
|
-
return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts)
|
|
663
|
-
.then(function(response_and_data) {
|
|
664
|
-
return response_and_data.data;
|
|
665
|
-
});
|
|
666
535
|
}
|
|
536
|
+
|
|
537
|
+
return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts)
|
|
538
|
+
.then(function(response_and_data) {
|
|
539
|
+
return response_and_data.data;
|
|
540
|
+
});
|
|
667
541
|
}
|
|
668
542
|
|
|
669
543
|
|
|
@@ -702,36 +576,11 @@ export class TagsApi {
|
|
|
702
576
|
let accepts = ['application/json; charset=UTF-8'];
|
|
703
577
|
let returnType = 'Blob';
|
|
704
578
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
711
|
-
authNames, contentTypes, accepts, returnType
|
|
712
|
-
),
|
|
713
|
-
this.apiClient,
|
|
714
|
-
{
|
|
715
|
-
'path': '/tags/{tag_gid}',
|
|
716
|
-
'httpMethod': 'PUT',
|
|
717
|
-
'pathParams': pathParams,
|
|
718
|
-
'queryParams': queryParams,
|
|
719
|
-
'headerParams': headerParams,
|
|
720
|
-
'formParams': formParams,
|
|
721
|
-
'bodyParam': postBody,
|
|
722
|
-
'authNames': authNames,
|
|
723
|
-
'contentTypes': contentTypes,
|
|
724
|
-
'accepts': accepts,
|
|
725
|
-
'returnType': returnType
|
|
726
|
-
}
|
|
727
|
-
)
|
|
728
|
-
} else {
|
|
729
|
-
return this.apiClient.callApi(
|
|
730
|
-
'/tags/{tag_gid}', 'PUT',
|
|
731
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
732
|
-
authNames, contentTypes, accepts, returnType
|
|
733
|
-
);
|
|
734
|
-
}
|
|
579
|
+
return this.apiClient.callApi(
|
|
580
|
+
'/tags/{tag_gid}', 'PUT',
|
|
581
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
582
|
+
authNames, contentTypes, accepts, returnType
|
|
583
|
+
);
|
|
735
584
|
}
|
|
736
585
|
|
|
737
586
|
/**
|
|
@@ -744,15 +593,10 @@ export class TagsApi {
|
|
|
744
593
|
*/
|
|
745
594
|
updateTag(tag_gid, opts) {
|
|
746
595
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
return this.updateTagWithHttpInfo(tag_gid, opts)
|
|
752
|
-
.then(function(response_and_data) {
|
|
753
|
-
return response_and_data.data;
|
|
754
|
-
});
|
|
755
|
-
}
|
|
596
|
+
return this.updateTagWithHttpInfo(tag_gid, opts)
|
|
597
|
+
.then(function(response_and_data) {
|
|
598
|
+
return response_and_data.data;
|
|
599
|
+
});
|
|
756
600
|
}
|
|
757
601
|
|
|
758
602
|
}
|