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
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
|
|
14
14
|
* Asana
|
|
15
15
|
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Portfolios service.
|
|
31
31
|
* @module api/PortfoliosApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -52,7 +52,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
52
52
|
* @param {String} portfolio_gid Globally unique identifier for the portfolio.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
54
54
|
*/
|
|
55
|
-
_createClass(PortfoliosApi, [{
|
|
55
|
+
return _createClass(PortfoliosApi, [{
|
|
56
56
|
key: "addCustomFieldSettingForPortfolioWithHttpInfo",
|
|
57
57
|
value: function addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid) {
|
|
58
58
|
var postBody = body;
|
|
@@ -74,25 +74,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
74
74
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
75
75
|
var accepts = ['application/json; charset=UTF-8'];
|
|
76
76
|
var returnType = 'Blob';
|
|
77
|
-
|
|
78
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
79
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
80
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/addCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
81
|
-
'path': '/portfolios/{portfolio_gid}/addCustomFieldSetting',
|
|
82
|
-
'httpMethod': 'POST',
|
|
83
|
-
'pathParams': pathParams,
|
|
84
|
-
'queryParams': queryParams,
|
|
85
|
-
'headerParams': headerParams,
|
|
86
|
-
'formParams': formParams,
|
|
87
|
-
'bodyParam': postBody,
|
|
88
|
-
'authNames': authNames,
|
|
89
|
-
'contentTypes': contentTypes,
|
|
90
|
-
'accepts': accepts,
|
|
91
|
-
'returnType': returnType
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
-
}
|
|
77
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
78
|
}
|
|
97
79
|
|
|
98
80
|
/**
|
|
@@ -105,14 +87,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
105
87
|
}, {
|
|
106
88
|
key: "addCustomFieldSettingForPortfolio",
|
|
107
89
|
value: function addCustomFieldSettingForPortfolio(body, portfolio_gid) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
} else {
|
|
112
|
-
return this.addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
113
|
-
return response_and_data.data;
|
|
114
|
-
});
|
|
115
|
-
}
|
|
90
|
+
return this.addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
91
|
+
return response_and_data.data;
|
|
92
|
+
});
|
|
116
93
|
}
|
|
117
94
|
|
|
118
95
|
/**
|
|
@@ -144,25 +121,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
144
121
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
145
122
|
var accepts = ['application/json; charset=UTF-8'];
|
|
146
123
|
var returnType = 'Blob';
|
|
147
|
-
|
|
148
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
149
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
150
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/addItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
151
|
-
'path': '/portfolios/{portfolio_gid}/addItem',
|
|
152
|
-
'httpMethod': 'POST',
|
|
153
|
-
'pathParams': pathParams,
|
|
154
|
-
'queryParams': queryParams,
|
|
155
|
-
'headerParams': headerParams,
|
|
156
|
-
'formParams': formParams,
|
|
157
|
-
'bodyParam': postBody,
|
|
158
|
-
'authNames': authNames,
|
|
159
|
-
'contentTypes': contentTypes,
|
|
160
|
-
'accepts': accepts,
|
|
161
|
-
'returnType': returnType
|
|
162
|
-
});
|
|
163
|
-
} else {
|
|
164
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
165
|
-
}
|
|
124
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
166
125
|
}
|
|
167
126
|
|
|
168
127
|
/**
|
|
@@ -175,14 +134,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
175
134
|
}, {
|
|
176
135
|
key: "addItemForPortfolio",
|
|
177
136
|
value: function addItemForPortfolio(body, portfolio_gid) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
} else {
|
|
182
|
-
return this.addItemForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
183
|
-
return response_and_data.data;
|
|
184
|
-
});
|
|
185
|
-
}
|
|
137
|
+
return this.addItemForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
138
|
+
return response_and_data.data;
|
|
139
|
+
});
|
|
186
140
|
}
|
|
187
141
|
|
|
188
142
|
/**
|
|
@@ -219,25 +173,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
219
173
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
220
174
|
var accepts = ['application/json; charset=UTF-8'];
|
|
221
175
|
var returnType = 'Blob';
|
|
222
|
-
|
|
223
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
224
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
225
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/addMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
226
|
-
'path': '/portfolios/{portfolio_gid}/addMembers',
|
|
227
|
-
'httpMethod': 'POST',
|
|
228
|
-
'pathParams': pathParams,
|
|
229
|
-
'queryParams': queryParams,
|
|
230
|
-
'headerParams': headerParams,
|
|
231
|
-
'formParams': formParams,
|
|
232
|
-
'bodyParam': postBody,
|
|
233
|
-
'authNames': authNames,
|
|
234
|
-
'contentTypes': contentTypes,
|
|
235
|
-
'accepts': accepts,
|
|
236
|
-
'returnType': returnType
|
|
237
|
-
});
|
|
238
|
-
} else {
|
|
239
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
240
|
-
}
|
|
176
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/addMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
241
177
|
}
|
|
242
178
|
|
|
243
179
|
/**
|
|
@@ -252,14 +188,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
252
188
|
}, {
|
|
253
189
|
key: "addMembersForPortfolio",
|
|
254
190
|
value: function addMembersForPortfolio(body, portfolio_gid, opts) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
} else {
|
|
259
|
-
return this.addMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
260
|
-
return response_and_data.data;
|
|
261
|
-
});
|
|
262
|
-
}
|
|
191
|
+
return this.addMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
192
|
+
return response_and_data.data;
|
|
193
|
+
});
|
|
263
194
|
}
|
|
264
195
|
|
|
265
196
|
/**
|
|
@@ -289,25 +220,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
289
220
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
290
221
|
var accepts = ['application/json; charset=UTF-8'];
|
|
291
222
|
var returnType = 'Blob';
|
|
292
|
-
|
|
293
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
294
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
295
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
296
|
-
'path': '/portfolios',
|
|
297
|
-
'httpMethod': 'POST',
|
|
298
|
-
'pathParams': pathParams,
|
|
299
|
-
'queryParams': queryParams,
|
|
300
|
-
'headerParams': headerParams,
|
|
301
|
-
'formParams': formParams,
|
|
302
|
-
'bodyParam': postBody,
|
|
303
|
-
'authNames': authNames,
|
|
304
|
-
'contentTypes': contentTypes,
|
|
305
|
-
'accepts': accepts,
|
|
306
|
-
'returnType': returnType
|
|
307
|
-
});
|
|
308
|
-
} else {
|
|
309
|
-
return this.apiClient.callApi('/portfolios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
310
|
-
}
|
|
223
|
+
return this.apiClient.callApi('/portfolios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
311
224
|
}
|
|
312
225
|
|
|
313
226
|
/**
|
|
@@ -321,14 +234,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
321
234
|
}, {
|
|
322
235
|
key: "createPortfolio",
|
|
323
236
|
value: function createPortfolio(body, opts) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
} else {
|
|
328
|
-
return this.createPortfolioWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
329
|
-
return response_and_data.data;
|
|
330
|
-
});
|
|
331
|
-
}
|
|
237
|
+
return this.createPortfolioWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
238
|
+
return response_and_data.data;
|
|
239
|
+
});
|
|
332
240
|
}
|
|
333
241
|
|
|
334
242
|
/**
|
|
@@ -355,25 +263,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
355
263
|
var contentTypes = [];
|
|
356
264
|
var accepts = ['application/json; charset=UTF-8'];
|
|
357
265
|
var returnType = 'Blob';
|
|
358
|
-
|
|
359
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
360
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
361
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
362
|
-
'path': '/portfolios/{portfolio_gid}',
|
|
363
|
-
'httpMethod': 'DELETE',
|
|
364
|
-
'pathParams': pathParams,
|
|
365
|
-
'queryParams': queryParams,
|
|
366
|
-
'headerParams': headerParams,
|
|
367
|
-
'formParams': formParams,
|
|
368
|
-
'bodyParam': postBody,
|
|
369
|
-
'authNames': authNames,
|
|
370
|
-
'contentTypes': contentTypes,
|
|
371
|
-
'accepts': accepts,
|
|
372
|
-
'returnType': returnType
|
|
373
|
-
});
|
|
374
|
-
} else {
|
|
375
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
376
|
-
}
|
|
266
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
377
267
|
}
|
|
378
268
|
|
|
379
269
|
/**
|
|
@@ -385,14 +275,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
385
275
|
}, {
|
|
386
276
|
key: "deletePortfolio",
|
|
387
277
|
value: function deletePortfolio(portfolio_gid) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
} else {
|
|
392
|
-
return this.deletePortfolioWithHttpInfo(portfolio_gid).then(function (response_and_data) {
|
|
393
|
-
return response_and_data.data;
|
|
394
|
-
});
|
|
395
|
-
}
|
|
278
|
+
return this.deletePortfolioWithHttpInfo(portfolio_gid).then(function (response_and_data) {
|
|
279
|
+
return response_and_data.data;
|
|
280
|
+
});
|
|
396
281
|
}
|
|
397
282
|
|
|
398
283
|
/**
|
|
@@ -426,9 +311,8 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
426
311
|
var contentTypes = [];
|
|
427
312
|
var accepts = ['application/json; charset=UTF-8'];
|
|
428
313
|
var returnType = 'Blob';
|
|
429
|
-
|
|
430
314
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
431
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
315
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
432
316
|
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
433
317
|
'path': '/portfolios/{portfolio_gid}/items',
|
|
434
318
|
'httpMethod': 'GET',
|
|
@@ -442,9 +326,8 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
442
326
|
'accepts': accepts,
|
|
443
327
|
'returnType': returnType
|
|
444
328
|
});
|
|
445
|
-
} else {
|
|
446
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
447
329
|
}
|
|
330
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
448
331
|
}
|
|
449
332
|
|
|
450
333
|
/**
|
|
@@ -461,13 +344,12 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
461
344
|
key: "getItemsForPortfolio",
|
|
462
345
|
value: function getItemsForPortfolio(portfolio_gid, opts) {
|
|
463
346
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
464
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
347
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
465
348
|
return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts);
|
|
466
|
-
} else {
|
|
467
|
-
return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
468
|
-
return response_and_data.data;
|
|
469
|
-
});
|
|
470
349
|
}
|
|
350
|
+
return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
351
|
+
return response_and_data.data;
|
|
352
|
+
});
|
|
471
353
|
}
|
|
472
354
|
|
|
473
355
|
/**
|
|
@@ -499,25 +381,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
499
381
|
var contentTypes = [];
|
|
500
382
|
var accepts = ['application/json; charset=UTF-8'];
|
|
501
383
|
var returnType = 'Blob';
|
|
502
|
-
|
|
503
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
504
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
505
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
506
|
-
'path': '/portfolios/{portfolio_gid}',
|
|
507
|
-
'httpMethod': 'GET',
|
|
508
|
-
'pathParams': pathParams,
|
|
509
|
-
'queryParams': queryParams,
|
|
510
|
-
'headerParams': headerParams,
|
|
511
|
-
'formParams': formParams,
|
|
512
|
-
'bodyParam': postBody,
|
|
513
|
-
'authNames': authNames,
|
|
514
|
-
'contentTypes': contentTypes,
|
|
515
|
-
'accepts': accepts,
|
|
516
|
-
'returnType': returnType
|
|
517
|
-
});
|
|
518
|
-
} else {
|
|
519
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
520
|
-
}
|
|
384
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
521
385
|
}
|
|
522
386
|
|
|
523
387
|
/**
|
|
@@ -531,14 +395,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
531
395
|
}, {
|
|
532
396
|
key: "getPortfolio",
|
|
533
397
|
value: function getPortfolio(portfolio_gid, opts) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
} else {
|
|
538
|
-
return this.getPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
539
|
-
return response_and_data.data;
|
|
540
|
-
});
|
|
541
|
-
}
|
|
398
|
+
return this.getPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
399
|
+
return response_and_data.data;
|
|
400
|
+
});
|
|
542
401
|
}
|
|
543
402
|
|
|
544
403
|
/**
|
|
@@ -572,9 +431,8 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
572
431
|
var contentTypes = [];
|
|
573
432
|
var accepts = ['application/json; charset=UTF-8'];
|
|
574
433
|
var returnType = 'Blob';
|
|
575
|
-
|
|
576
434
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
577
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
435
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
578
436
|
return Collection.fromApiClient(this.apiClient.callApi('/portfolios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
579
437
|
'path': '/portfolios',
|
|
580
438
|
'httpMethod': 'GET',
|
|
@@ -588,9 +446,8 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
588
446
|
'accepts': accepts,
|
|
589
447
|
'returnType': returnType
|
|
590
448
|
});
|
|
591
|
-
} else {
|
|
592
|
-
return this.apiClient.callApi('/portfolios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
593
449
|
}
|
|
450
|
+
return this.apiClient.callApi('/portfolios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
594
451
|
}
|
|
595
452
|
|
|
596
453
|
/**
|
|
@@ -608,13 +465,12 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
608
465
|
key: "getPortfolios",
|
|
609
466
|
value: function getPortfolios(workspace, opts) {
|
|
610
467
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
611
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
468
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
612
469
|
return this.getPortfoliosWithHttpInfo(workspace, opts);
|
|
613
|
-
} else {
|
|
614
|
-
return this.getPortfoliosWithHttpInfo(workspace, opts).then(function (response_and_data) {
|
|
615
|
-
return response_and_data.data;
|
|
616
|
-
});
|
|
617
470
|
}
|
|
471
|
+
return this.getPortfoliosWithHttpInfo(workspace, opts).then(function (response_and_data) {
|
|
472
|
+
return response_and_data.data;
|
|
473
|
+
});
|
|
618
474
|
}
|
|
619
475
|
|
|
620
476
|
/**
|
|
@@ -646,25 +502,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
646
502
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
647
503
|
var accepts = ['application/json; charset=UTF-8'];
|
|
648
504
|
var returnType = 'Blob';
|
|
649
|
-
|
|
650
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
651
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
652
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
653
|
-
'path': '/portfolios/{portfolio_gid}/removeCustomFieldSetting',
|
|
654
|
-
'httpMethod': 'POST',
|
|
655
|
-
'pathParams': pathParams,
|
|
656
|
-
'queryParams': queryParams,
|
|
657
|
-
'headerParams': headerParams,
|
|
658
|
-
'formParams': formParams,
|
|
659
|
-
'bodyParam': postBody,
|
|
660
|
-
'authNames': authNames,
|
|
661
|
-
'contentTypes': contentTypes,
|
|
662
|
-
'accepts': accepts,
|
|
663
|
-
'returnType': returnType
|
|
664
|
-
});
|
|
665
|
-
} else {
|
|
666
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
667
|
-
}
|
|
505
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
668
506
|
}
|
|
669
507
|
|
|
670
508
|
/**
|
|
@@ -677,14 +515,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
677
515
|
}, {
|
|
678
516
|
key: "removeCustomFieldSettingForPortfolio",
|
|
679
517
|
value: function removeCustomFieldSettingForPortfolio(body, portfolio_gid) {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
} else {
|
|
684
|
-
return this.removeCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
685
|
-
return response_and_data.data;
|
|
686
|
-
});
|
|
687
|
-
}
|
|
518
|
+
return this.removeCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
519
|
+
return response_and_data.data;
|
|
520
|
+
});
|
|
688
521
|
}
|
|
689
522
|
|
|
690
523
|
/**
|
|
@@ -716,25 +549,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
716
549
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
717
550
|
var accepts = ['application/json; charset=UTF-8'];
|
|
718
551
|
var returnType = 'Blob';
|
|
719
|
-
|
|
720
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
721
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
722
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/removeItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
723
|
-
'path': '/portfolios/{portfolio_gid}/removeItem',
|
|
724
|
-
'httpMethod': 'POST',
|
|
725
|
-
'pathParams': pathParams,
|
|
726
|
-
'queryParams': queryParams,
|
|
727
|
-
'headerParams': headerParams,
|
|
728
|
-
'formParams': formParams,
|
|
729
|
-
'bodyParam': postBody,
|
|
730
|
-
'authNames': authNames,
|
|
731
|
-
'contentTypes': contentTypes,
|
|
732
|
-
'accepts': accepts,
|
|
733
|
-
'returnType': returnType
|
|
734
|
-
});
|
|
735
|
-
} else {
|
|
736
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
737
|
-
}
|
|
552
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeItem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
738
553
|
}
|
|
739
554
|
|
|
740
555
|
/**
|
|
@@ -747,14 +562,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
747
562
|
}, {
|
|
748
563
|
key: "removeItemForPortfolio",
|
|
749
564
|
value: function removeItemForPortfolio(body, portfolio_gid) {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
} else {
|
|
754
|
-
return this.removeItemForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
755
|
-
return response_and_data.data;
|
|
756
|
-
});
|
|
757
|
-
}
|
|
565
|
+
return this.removeItemForPortfolioWithHttpInfo(body, portfolio_gid).then(function (response_and_data) {
|
|
566
|
+
return response_and_data.data;
|
|
567
|
+
});
|
|
758
568
|
}
|
|
759
569
|
|
|
760
570
|
/**
|
|
@@ -791,25 +601,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
791
601
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
792
602
|
var accepts = ['application/json; charset=UTF-8'];
|
|
793
603
|
var returnType = 'Blob';
|
|
794
|
-
|
|
795
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
796
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
797
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/removeMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
798
|
-
'path': '/portfolios/{portfolio_gid}/removeMembers',
|
|
799
|
-
'httpMethod': 'POST',
|
|
800
|
-
'pathParams': pathParams,
|
|
801
|
-
'queryParams': queryParams,
|
|
802
|
-
'headerParams': headerParams,
|
|
803
|
-
'formParams': formParams,
|
|
804
|
-
'bodyParam': postBody,
|
|
805
|
-
'authNames': authNames,
|
|
806
|
-
'contentTypes': contentTypes,
|
|
807
|
-
'accepts': accepts,
|
|
808
|
-
'returnType': returnType
|
|
809
|
-
});
|
|
810
|
-
} else {
|
|
811
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
812
|
-
}
|
|
604
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/removeMembers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
813
605
|
}
|
|
814
606
|
|
|
815
607
|
/**
|
|
@@ -824,14 +616,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
824
616
|
}, {
|
|
825
617
|
key: "removeMembersForPortfolio",
|
|
826
618
|
value: function removeMembersForPortfolio(body, portfolio_gid, opts) {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
} else {
|
|
831
|
-
return this.removeMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
832
|
-
return response_and_data.data;
|
|
833
|
-
});
|
|
834
|
-
}
|
|
619
|
+
return this.removeMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
620
|
+
return response_and_data.data;
|
|
621
|
+
});
|
|
835
622
|
}
|
|
836
623
|
|
|
837
624
|
/**
|
|
@@ -868,25 +655,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
868
655
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
869
656
|
var accepts = ['application/json; charset=UTF-8'];
|
|
870
657
|
var returnType = 'Blob';
|
|
871
|
-
|
|
872
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
873
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
874
|
-
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
875
|
-
'path': '/portfolios/{portfolio_gid}',
|
|
876
|
-
'httpMethod': 'PUT',
|
|
877
|
-
'pathParams': pathParams,
|
|
878
|
-
'queryParams': queryParams,
|
|
879
|
-
'headerParams': headerParams,
|
|
880
|
-
'formParams': formParams,
|
|
881
|
-
'bodyParam': postBody,
|
|
882
|
-
'authNames': authNames,
|
|
883
|
-
'contentTypes': contentTypes,
|
|
884
|
-
'accepts': accepts,
|
|
885
|
-
'returnType': returnType
|
|
886
|
-
});
|
|
887
|
-
} else {
|
|
888
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
889
|
-
}
|
|
658
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
890
659
|
}
|
|
891
660
|
|
|
892
661
|
/**
|
|
@@ -901,15 +670,9 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
901
670
|
}, {
|
|
902
671
|
key: "updatePortfolio",
|
|
903
672
|
value: function updatePortfolio(body, portfolio_gid, opts) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
} else {
|
|
908
|
-
return this.updatePortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
909
|
-
return response_and_data.data;
|
|
910
|
-
});
|
|
911
|
-
}
|
|
673
|
+
return this.updatePortfolioWithHttpInfo(body, portfolio_gid, opts).then(function (response_and_data) {
|
|
674
|
+
return response_and_data.data;
|
|
675
|
+
});
|
|
912
676
|
}
|
|
913
677
|
}]);
|
|
914
|
-
return PortfoliosApi;
|
|
915
678
|
}();
|